Skip to content

Commit 4af60f7

Browse files
authored
New name for "disable automatic resolution" (#3706)
This adds a new alias for this flag and also updates the help text. Previous names of the flag will continue to work as well. rdar://81961772
1 parent a0ffd92 commit 4af60f7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Sources/Commands/Options.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,9 @@ public struct SwiftToolOptions: ParsableArguments {
238238
inversion: .prefixedEnableDisable,
239239
help: "Enable code coverage")
240240
var shouldEnableCodeCoverage: Bool = false
241-
242-
// TODO: Does disable-automatic-resolution alias force-resolved-versions?
243241

244242
/// Use Package.resolved file for resolving dependencies.
245-
@Flag(name: [.long, .customLong("disable-automatic-resolution")], help: "Disable automatic resolution if Package.resolved file is out-of-date")
243+
@Flag(name: [.long, .customLong("disable-automatic-resolution"), .customLong("only-use-versions-from-resolved-file")], help: "Only use versions from the Package.resolved file and fail resolution if it is out-of-date")
246244
var forceResolvedVersions: Bool = false
247245

248246
// @Flag works best when there is a default value present

0 commit comments

Comments
 (0)