]> git.proxmox.com Git - cargo.git/commit
refactor(cli): Make help behave like other subcommands
authorEd Page <eopage@gmail.com>
Mon, 29 Aug 2022 16:29:11 +0000 (11:29 -0500)
committerEd Page <eopage@gmail.com>
Thu, 1 Sep 2022 00:18:26 +0000 (19:18 -0500)
commitd674c2294ba8392ddbd9897ad9a285615f97994b
tree6f601c84a91d9a5be62e13fd62a164bb9c209225
parent4ed54cecce3ce9ab6ff058781f4c8a500ee6b8b5
refactor(cli): Make help behave like other subcommands

Before, we had hacks to intercept raw arguments and to intercept clap
errors and assume what their intention was to be able to implement our
help system.

This flips it around and makes help like any other subcommand,
simplifying cargo initialization.
Cargo.toml
src/bin/cargo/cli.rs
src/bin/cargo/commands/help.rs
src/bin/cargo/commands/mod.rs