radicle-heartwood-lfs/crates/radicle-cli
Fintan Halpenny 23332fa318 cli/main: migrate main to use clap
Now that all commands can be parsed by clap, remove any custom parsing and
directly use `CliArgs::parse`.

The `Diff` command was removed, since only one `external_command` can be
declared for a subcommand. The handling of `rad diff` is now done via the
`External` variant. If the subcommand name is `diff` then this is executed,
otherwise delegate to the possible `rad-{exe}` command.

Also of note, the `rad inspect` command has an alias `rad .`. This changes the
behaviour of `rad . --help`. Before, it would print the help of the `rad`
command. Now, it prints the help of `rad inspect`.

Co-authored-by: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
2025-11-01 11:20:43 +01:00
..
examples cli/main: migrate main to use clap 2025-11-01 11:20:43 +01:00
src cli/main: migrate main to use clap 2025-11-01 11:20:43 +01:00
tests workspace: A Little Less `git2` 2025-10-13 16:14:23 +02:00
Cargo.toml workspace: A Little Less `git2` 2025-10-13 16:14:23 +02:00
build.rs repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00