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
Define "default" (and only) command to execute #209
Comments
GLI isn't for that sort of app. GLI is for an app that has a series of subcommands. If you just want a simple command line app without subcommands, |
I personally want a mix of the two. gli WILDCARD
gli standard-cmd Is something like that possible in GLI? |
What does All that said, GLI really is designed to always be given at least one subcommand. |
|
Ah, ok. It's not really designed for that but you might be able to implement it yourself. For reference, here is how GLI locates a command based on the command line: Lines 15 to 36 in dd79e12
You could rescue The one thing you couldn't do easily is detect the name of the unknown command without parsing the message of that exception. I suppose |
It'll be nice to have a "default" global command that will be execute, if there are no other commands defined in the interface.
We have ton of utilities that are a "single purpose" ones. They receive a bunch of flags but have only one command to execute
The text was updated successfully, but these errors were encountered: