Only print non-default options using inferoptions

This commit is contained in:
Nick Lockwood committed 2018-08-05 08:21:40 +01:00
1 parent 93a5803f33
commit ae55f6868f
1 file changed
+2 -1
+2 -1
View File
@@ -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
}