Skip to content

Commit d2c5c27

Browse files
committed
Update swift-argument-parser to 0.2.0
1 parent 3133074 commit d2c5c27

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

Package.resolved

Lines changed: 2 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
7575
package.dependencies += [
7676
.package(url: "https://github.com/apple/swift-tools-support-core.git", .branch("master")),
7777
.package(url: "https://github.com/jpsim/Yams.git", .branch("master")),
78-
.package(url: "https://github.com/apple/swift-argument-parser.git", .exact("0.0.6"))
78+
.package(url: "https://github.com/apple/swift-argument-parser.git", .exact("0.2.0"))
7979
]
8080
} else {
8181
package.dependencies += [

Sources/swift-help/main.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@ extension DriverKind: ExpressibleByArgument {}
1616

1717
struct SwiftHelp: ParsableCommand {
1818
@ArgumentParser.Option(name: .customLong("tool", withSingleDash: true),
19-
default: .interactive,
2019
help: "The tool to list options of")
21-
var tool: DriverKind
20+
var tool: DriverKind = .interactive
2221

2322
@Flag(name: .customLong("show-hidden", withSingleDash: true),
2423
help: "List hidden (unsupported) options")
25-
var showHidden: Bool
24+
var showHidden: Bool = false
2625

2726
func run() throws {
2827
let driverOptionTable = OptionTable()

0 commit comments

Comments
 (0)