Skip to content

Commit 5647a32

Browse files
committed
Update swift-argument-parser to 0.3.0
1 parent 8f979eb commit 5647a32

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

Package.resolved

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,9 @@
55
"package": "swift-argument-parser",
66
"repositoryURL": "https://github.com/apple/swift-argument-parser.git",
77
"state": {
8-
<<<<<<< HEAD
9-
"branch": "master",
10-
"revision": "15351c1cd009eba0b6e438bfef55ea9847a8dc4a",
11-
"version": null
12-
=======
138
"branch": null,
14-
"revision": "223d62adc52d51669ae2ee19bdb8b7d9fd6fcd9c",
15-
"version": "0.0.6"
16-
>>>>>>> Add swift-argument-parser to the cmake build
9+
"revision": "15351c1cd009eba0b6e438bfef55ea9847a8dc4a",
10+
"version": "0.3.0"
1711
}
1812
},
1913
{

Package.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,12 @@ 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.3.0"))
7979
]
8080
} else {
8181
package.dependencies += [
8282
.package(path: "../swiftpm/swift-tools-support-core"),
8383
.package(path: "../yams"),
84-
.package(path: "../llbuild"),
8584
.package(path: "../swift-argument-parser"),
8685
]
8786
}

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)