We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ce6a169 + 661c7e4 commit 5e7ef93Copy full SHA for 5e7ef93
Sources/swift-format/CommandLineOptions.swift
@@ -50,6 +50,7 @@ struct SwiftFormatCommand: ParsableCommand {
50
///
51
/// If not specified, the tool will be run in format mode.
52
@Option(
53
+ name: .shortAndLong,
54
default: .format,
55
help: "The mode to run swift-format in. Either 'format', 'lint', or 'dump-configuration'.")
56
var mode: ToolMode
@@ -74,7 +75,7 @@ struct SwiftFormatCommand: ParsableCommand {
74
75
@Argument(help: "One or more input filenames")
76
var paths: [String]
77
- @Flag(help: "Print the version and exit")
78
+ @Flag(name: .shortAndLong, help: "Print the version and exit")
79
var version: Bool
80
81
@Flag(help: .hidden) var debugDisablePrettyPrint: Bool
0 commit comments