cargo-binutils icon indicating copy to clipboard operation
cargo-binutils copied to clipboard

Incorrectly formatted help message

Open ZeroErrors opened this issue 5 years ago • 0 comments

As mentioned in: https://github.com/rust-embedded/cargo-binutils/pull/86#issuecomment-667540799

While experimenting with this I just noticed that the help generated by the CLI parser is off, but that can be addressed separately:

# cargo size --bin
error: The argument '--bin <NAME>' requires a value but none was supplied

USAGE:
    cargo-size <binary-name> --bin <NAME>

For more information try --help

The <binary-name> shouldn't exist in the output. Its currently used so that parsing is valid but its set to hidden so shouldn't be displayed, could be a bug in clap? more investigation needed. https://github.com/rust-embedded/cargo-binutils/blob/2c39f5c94cebeab44b30c28b6cdc13926cd056b4/src/lib.rs#L172

ZeroErrors avatar Aug 01 '20 14:08 ZeroErrors