Uh oh!
There was an error while loading. Please reload this page.
I have a CLI with some subcommands. |
Replies: 3 comments 3 replies
Why would you want to do it? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The only way I can think of to do this now, is by abusing the name: clihelp: Sample applicationversion: 0.1.0commands:
- name: __dummyprivate: truedefault: forcecatch_all: true # <== "./cli anything unrecognized" will also print nothing
- name: downloadalias: dhelp: Download a file
- name: uploadalias: uhelp: Upload a fileand in the dummy command code: # noop:Since this is not at all a common practice to have a CLI output nothing, there is no natural way to do it in bashly. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I have written a CLI (
In the case of a call without arguments (or subcommands), the usage is currently output. |
The only way I can think of to do this now, is by abusing the
defaultcommand,privateandcatch_allfor good measure:and in the dummy command code:
Since this is not at all a common practice to have a CLI output nothing, there is no natural way to do it in bashly.
If you explain your use case, we can discuss more to see if it needs a non hacky solution.