Commit dfcb8c6
committed
swift-package-migrate: Hide global options
Currently, options that are specific to `swift package migrate` are
shown at the very bottom, following all the global options.
All anonymous option groups get coalesced into the default "OPTIONS"
section, which always comes last. So there is no proper way to hoist
subcommand options above all the base/global options other than giving
the subcommand option group a title.
Using "options" as the title would give us 2 "OPTIONS" sections, whereas
a custom title, such as "migrate options", would introduce yet another
design inconsistency. Instead, address this by hiding global options, as
most other package subcommands do.1 parent 9236977 commit dfcb8c6
File tree
2 files changed
+10
-1
lines changed- Sources/Commands/PackageCommands
- Tests/CommandsTests
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2106 | 2106 | | |
2107 | 2107 | | |
2108 | 2108 | | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
2109 | 2118 | | |
2110 | 2119 | | |
2111 | 2120 | | |
| |||
0 commit comments