Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the CLI requiring the help argument #206

Merged
merged 1 commit into from
Sep 1, 2022

Conversation

Alexendoo
Copy link
Member

Currently the CLI on master requires the help flag to be passed:

$ cargo bisect-rustc
error: The following required argument was not provided: help

USAGE:
    cargo <SUBCOMMAND>

For more information try help
$ cargo-bisect-rustc
error: The following required argument was not provided: help

USAGE:
    cargo bisect-rustc [OPTIONS] [-- <COMMAND_ARGS>...]

For more information try --help

I copied what https://github.com/clap-rs/clap/blob/master/examples/cargo-example.rs does, with this the help message of cargo-bisect-rustc --help is slightly different:

cargo-bisect-rustc 

USAGE:
    cargo <SUBCOMMAND>

OPTIONS:
    -h, --help    Print help information

SUBCOMMANDS:
    bisect-rustc    Bisects rustc toolchains with rustup
    help            Print this message or the help of the given subcommand(s)

But cargo bisect-rustc --help works as normal

@oli-obk oli-obk merged commit 21aba21 into rust-lang:master Sep 1, 2022
@Alexendoo Alexendoo deleted the fix-cli branch September 1, 2022 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants