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

[CLI] Investigate/cleanup help option #24

Open
JonasCir opened this issue Oct 7, 2022 · 0 comments
Open

[CLI] Investigate/cleanup help option #24

JonasCir opened this issue Oct 7, 2022 · 0 comments

Comments

@JonasCir
Copy link
Collaborator

JonasCir commented Oct 7, 2022

Not certain how this is supposed to work: We always define the Help variant in commands in src/cli/mod.rs but do not match it in main.rs. I would assume that we can get rid of this variant and just let do clap its magic when an unknown command is encountered.

Probably something along these lines.


Edit: I just found #[clap(arg_required_else_help = true)].
Edit 2: we should bump clap to the most recent version

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