Skip to content

Commit 069da8b

Browse files
committed
Address/apply feedback from Mattt and Boris
1 parent 321b115 commit 069da8b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Sources/Commands/Options.swift

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,13 +329,18 @@ public struct SwiftToolOptions: ParsableArguments {
329329
completion: .file())
330330
var netrcFilePath: AbsolutePath?
331331

332-
#if canImport(Security)
333332
/// Whether to use keychain for authenticating with remote servers
334333
/// when downloading binary artifacts or communicating with a registry.
335-
@Flag(inversion: .prefixedNo,
334+
#if canImport(Security)
335+
@Flag(inversion: .prefixedEnableDisable,
336336
exclusivity: .exclusive,
337-
help: "Search credentials in OS keychain")
337+
help: "Search credentials in macOS keychain")
338338
var keychain: Bool = true
339+
#else
340+
@Flag(inversion: .prefixedEnableDisable,
341+
exclusivity: .exclusive,
342+
help: .hidden)
343+
var keychain: Bool = false
339344
#endif
340345

341346
@Flag(name: .customLong("netrc"), help: .hidden)

0 commit comments

Comments
 (0)