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

Incorrectly formatted help message #90

Open
ZeroErrors opened this issue Aug 1, 2020 · 0 comments
Open

Incorrectly formatted help message #90

ZeroErrors opened this issue Aug 1, 2020 · 0 comments

Comments

@ZeroErrors
Copy link
Contributor

ZeroErrors commented Aug 1, 2020

As mentioned in: #86 (comment)

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.

Arg::with_name("binary-name").hidden(true),

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

No branches or pull requests

1 participant