Skip to content

Commit 94db3c5

Browse files
committed
Default --netrc to true, adding --no-netrc inversion
1 parent 70975dc commit 94db3c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Commands/Options.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,8 @@ public struct SwiftToolOptions: ParsableArguments {
316316
}
317317

318318
/// Tells `Workspace` to attempt to locate .netrc file at `NSHomeDirectory`.
319-
@Flag()
320-
var netrc: Bool = false
319+
@Flag(inversion: .prefixedNo)
320+
var netrc: Bool = true
321321

322322
/// Similar to `--netrc`, but this option makes the .netrc usage optional and not mandatory as with the `--netrc` option.
323323
@Flag(name: .customLong("netrc-optional"))

0 commit comments

Comments
 (0)