We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a2acc60 + 8c22eb6 commit 7f3e6b6Copy full SHA for 7f3e6b6
Sources/swift-format/Subcommands/LintFormatOptions.swift
@@ -107,7 +107,7 @@ struct LintFormatOptions: ParsableArguments {
107
throw ValidationError("'--recursive' is only valid when formatting or linting files")
108
}
109
110
- if assumeFilename != nil && !paths.isEmpty {
+ if assumeFilename != nil && !(paths.isEmpty || paths == ["-"]) {
111
throw ValidationError("'--assume-filename' is only valid when reading from stdin")
112
113
0 commit comments