Skip to content

Commit 31205e2

Browse files
committed
Remove the legacy entry point.
We've supported subcommands via `swift-argument-parser` for a few versions now, so remove the old `-m/--mode` flag that was only kept for compatibility with very early releases.
1 parent 5add2e0 commit 31205e2

File tree

2 files changed

+1
-78
lines changed

2 files changed

+1
-78
lines changed

Sources/swift-format/Subcommands/LegacyMain.swift

Lines changed: 0 additions & 74 deletions
This file was deleted.

Sources/swift-format/main.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,9 @@ struct SwiftFormatCommand: ParsableCommand {
2121
subcommands: [
2222
DumpConfiguration.self,
2323
Format.self,
24-
LegacyMain.self,
2524
Lint.self,
2625
],
27-
// TODO: Change the default to `Format` when we delete the legacy interface after a short
28-
// period of time.
29-
defaultSubcommand: LegacyMain.self
26+
defaultSubcommand: Format.self
3027
)
3128

3229
@OptionGroup()

0 commit comments

Comments
 (0)