Skip to content

Commit 73e2f4e

Browse files
committed
Merge pull request #229 from dylansturg/allow_empty_paths
Allow empty paths to imply reading from stdin.
1 parent 483580f commit 73e2f4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/swift-format/Subcommands/LintFormatOptions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ struct LintFormatOptions: ParsableArguments {
5151

5252
/// The list of paths to Swift source files that should be formatted or linted.
5353
@Argument(help: "Zero or more input filenames.")
54-
var paths: [String]
54+
var paths: [String] = []
5555

5656
@Flag(help: .hidden) var debugDisablePrettyPrint: Bool
5757
@Flag(help: .hidden) var debugDumpTokenStream: Bool

0 commit comments

Comments
 (0)