Commit 17f2491
Use published clap-sort crate instead of inlined module
The clap-sort crate on crates.io (https://github.com/jdx/clap-sort) is
the maintained upstream version of what src/clap_sort.rs duplicated.
It already handles positional args correctly (source order preserved
for parsing semantics; only short/long flags are sorted).
Delete the 461-line inlined copy and depend on `clap-sort = "1"` as a
dev-dependency instead. The `test_cli_ordering` test now calls
`clap_sort::assert_sorted(&Cli::command())`.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent a1fa7b4 commit 17f2491
6 files changed
Lines changed: 13 additions & 469 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
0 commit comments