I have an application with a number of
subcommand's, for example:
subcommand has been specified, I would like it to call the
So instead of
$ application list
I would like to run just
And it should behave as if
application list was entered.
Is it possible for a
subcommand to be the default? Alternatively is there a possibility to call a subcommand from the main
The non-attractive alternative is to migrate the
list logic into the top level struct but that also makes the
list options visible to the
delete where some of the options don't make sense. Additionally - in my case - I have to make one of the options optional where they are mandatory in some
subcommands and not mandatory in others. By having all the logic in
subcommands I can type the options appropriately.