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
no_binary_name(true)
not reflected in help output of subcommand
#3668
Comments
This came out of the conversation in #3664 |
just a side note/small extension, this is also valid and behaving in same manner (possibly incorrect?) for an error reported on subcommand typo:
The "if you believe..." line possibly does not apply to demon mode of CLAP -> when running without program name? |
I'm starting to wonder if we should leave
|
This is to help in cases like clap-rs#3668 and clap-rs#3673
Starting an example for REPLs so we can more easily evaluate what might need to be done. See #3675 |
This is to help in cases like clap-rs#3668 and clap-rs#3673
Could you provide feedback on |
Imho new REPL example is good & simple enough to follow quickly. It seems to give expected output on Small enhancement might be extra example variant for clap I will try to switch my current codebase to multicall (thus doing a bit more testing in larger codebase) after resolving my currently completely unrelated From my point of view as "author" of issue, feel free to close/resolve as needed, thank you! |
Could you post what your concerns are in that issue so we can continue the discussion there? Even if its exactly what I said, I'd like it coming from your use case in your words. I was considering stablizing it as-is :).
Ideally, all of our examples are for both derive and builder but the minimum bar is builder because its more explicit so the builder users have the context they need while it should also be adaptable by derive users. |
Hopefully this comment wont reopen the issue, if so, apologies and please re-close :) Scratch/nevermind that comment of mine, it's just small divergence of my quick expectation and actual architecture of help segments. What i meant was this output in REPL example:
Here i sort of expected subcommands directly visible as part of USAGE, but following the actual instructions of last line output provides all the info needed:
|
Yes, there are multiple strategies for what to do on an error and that is something I plan to include in the doc comment for |
Please complete the following tasks
Rust Version
rustc 1.60.0 (7737e0b5c 2022-04-04)
Clap Version
3.1.12
Minimal reproducible code
CLAP is used inside of running app in "demon" mode using the
rustyline
crate.(
rustyline="9"
forCargo.toml
)Steps to reproduce the bug with the above code
help hello
command in running REPLActual Behaviour
When above app is executed, and
help hello
command is issued:Expected Behaviour
Additional Context
No response
Debug Output
No response
The text was updated successfully, but these errors were encountered: