Skip to content

Commit 5fe1347

Browse files
committed
changed terminology from pull to get
1 parent b4cf5dc commit 5fe1347

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Sources/swift-build/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ do {
8282
do {
8383
let dependencies = try get(manifest.package.dependencies, prefix: depsdir)
8484

85-
if opts.pull == false {
85+
if opts.get == false {
8686
try build(dependencies)
8787
try build(try get(manifest.package.testDependencies, prefix: depsdir))
8888

Sources/swift-build/usage.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func usage(print: (String) -> Void = { print($0) }) {
2929
print(" -v[v] Increase verbosity of informational output")
3030
print(" -Xcc <flag> Pass flag through to all compiler instantiations")
3131
print(" -Xlinker <flag> Pass flag through to all linker instantiations")
32-
print(" --pull Only pull down dependencies without building binaries")
32+
print(" --get Only pull down dependencies without building binaries")
3333
}
3434

3535
enum CleanMode: String {
@@ -56,7 +56,7 @@ struct Options {
5656
var verbosity: Int = 0
5757
var Xcc: [String] = []
5858
var Xlinker: [String] = []
59-
var pull = false
59+
var get = false
6060
}
6161

6262
func parse(commandLineArguments args: [String]) throws -> (Mode, Options) {
@@ -158,8 +158,8 @@ func parse(commandLineArguments args: [String]) throws -> (Mode, Options) {
158158

159159
case .Switch(.Xlinker):
160160
opts.Xlinker.append(try cruncher.rawPop())
161-
case .Switch(.Pull):
162-
opts.pull = true
161+
case .Switch(.get):
162+
opts.get = true
163163
}
164164
}
165165

@@ -212,7 +212,7 @@ private struct Cruncher {
212212
case Verbose = "--verbose"
213213
case Xcc = "-Xcc"
214214
case Xlinker = "-Xlinker"
215-
case Pull = "--pull"
215+
case Get = "--get"
216216

217217
init?(rawValue: String) {
218218
switch rawValue {
@@ -224,8 +224,8 @@ private struct Cruncher {
224224
self = .Xcc
225225
case Xlinker.rawValue:
226226
self = .Xlinker
227-
case Pull.rawValue:
228-
self = .Pull
227+
case Get.rawValue:
228+
self = .Get
229229
default:
230230
return nil
231231
}

0 commit comments

Comments
 (0)