Skip to content

Commit d1a9dc3

Browse files
committed
[Commands] AddSetting: Switch to .upToNextOption formatting
Instead of `--swift A=B --swift C=D` switch to `--swift A=B C=D` to make the command shorter and consistent with `migrate` and in the future other commands.
1 parent 3661caa commit d1a9dc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Commands/PackageCommands/AddSetting.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ extension SwiftPackageCommand {
4444

4545
@Option(
4646
name: .customLong("swift"),
47-
parsing: .unconditionalSingleValue,
47+
parsing: .upToNextOption,
4848
help: "The Swift language setting(s) to add. Supported settings: \(SwiftSetting.allCases.map(\.rawValue).joined(separator: ", "))."
4949
)
5050
var _swiftSettings: [String]

0 commit comments

Comments
 (0)