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

Multi word commmands / subcommands without quoting. #31

Open
cafce25 opened this issue Apr 21, 2023 · 1 comment
Open

Multi word commmands / subcommands without quoting. #31

cafce25 opened this issue Apr 21, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@cafce25
Copy link

cafce25 commented Apr 21, 2023

Is your feature request related to a problem? Please describe.

In recent years it's become more and more common to split the usages of a program into multiple sub commands, i.e. cargo has cargo run, cargo build, ... each with their own, specific help. But halp doesn't support multi word commands without quoting.

Describe the solution you'd like

It would be great if one could just do halp cargo build and get help for the build subcommand.

Describe alternatives you've considered

It's currently possible to get that help by simply quoting the command halp "cargo build", therefore it might not be worth the effort to support multiple words further than escaping.

@cafce25 cafce25 added the enhancement New feature or request label Apr 21, 2023
@0x61nas
Copy link
Contributor

0x61nas commented Jun 18, 2023

It seems like a reasonable feature, but I took a fast look at the current implementation for the CLI arguments parsing and I can't find an inexpensive way to implement this feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants