File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Sources/swift-format/Subcommands Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,9 @@ as well as the following command line options:
82
82
* ` -i/--in-place ` : Overwrites the input files when formatting instead of
83
83
printing the results to standard output.
84
84
85
+ * ` -p/--parallel ` : Whether or not to run formatting or linting in parallel
86
+ consuming all possible resources printing the results to standard output.
87
+
85
88
* ` -r/--recursive ` : If specified, then the tool will process ` .swift ` source
86
89
files in any directories listed on the command line and their descendants.
87
90
Without this flag, it is an error to list a directory on the command line.
Original file line number Diff line number Diff line change @@ -50,7 +50,9 @@ struct LintFormatOptions: ParsableArguments {
50
50
var ignoreUnparsableFiles : Bool = false
51
51
52
52
/// Whether or not to run the formatter/linter in parallel.
53
- @Flag ( help: " Process files in parallel, simultaneously across multiple cores. " )
53
+ @Flag (
54
+ name: . shortAndLong,
55
+ help: " Process files in parallel, simultaneously across multiple cores. " )
54
56
var parallel : Bool = false
55
57
56
58
/// The list of paths to Swift source files that should be formatted or linted.
You can’t perform that action at this time.
0 commit comments