epage / clapng

A full featured, fast Command Line Argument Parser for Rust
docs.rs/clap
Apache License 2.0
0 stars 0 forks source link

Output when multicall applet isn't found is unhelpful and ugly #216

Open epage opened 2 years ago

epage commented 2 years ago

Issue by fishface60 Tuesday Oct 12, 2021 at 20:05 GMT Originally opened as https://github.com/clap-rs/clap/issues/2862


Affected Version of clap

Expected Behavior Summary

When I run a multicall program from a link that does not match an applet, I expect an error message explaining that the applet was not found and which applets exist.

Actual Behavior Summary

Error message just lists that the argument wasn't expected.

Steps to Reproduce the issue

$ cargo build --examples
$ ln target/debug/examples/24_multicall_busybox asdf
$ ./asdf 
error: Found argument 'asdf' which wasn't expected, or isn't valid in this context

USAGE:
     [SUBCOMMAND]

For more information try --help