mirror of
https://github.com/nicklockwood/SwiftFormat.git
synced 2026-06-16 10:34:34 +00:00
Only print non-default options using inferoptions
This commit is contained in:
1 parent
93a5803f33
commit
ae55f6868f
1 file changed
+2
-1
@@ -409,9 +409,10 @@ func processArguments(_ args: [String], in directory: String) -> ExitCode {
|
||||
break
|
||||
}
|
||||
}
|
||||
let arguments = commandLineArguments(for: options, excludingDefaults: true)
|
||||
print("options inferred from \(filesParsed)/\(filesChecked) files in \(time)")
|
||||
print("")
|
||||
print(commandLineArguments(for: options).map({ "--\($0.key) \($0.value)" }).joined(separator: " "))
|
||||
print(arguments.map { "--\($0.key) \($0.value)" }.joined(separator: " "))
|
||||
print("")
|
||||
return .ok
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user