|
I have a CLI with some subcommands. |
Replies: 3 comments 3 replies
|
Why would you want to do it? |
|
The only way I can think of to do this now, is by abusing the name: cli
help: Sample application
version: 0.1.0
commands:
- name: __dummy
private: true
default: force
catch_all: true # <== "./cli anything unrecognized" will also print nothing
- name: download
alias: d
help: Download a file
- name: upload
alias: u
help: 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. |
|
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.