When implementing the various commands using @command, they are treated as necessary all the time. This works like
$ program add
or
$ program something-else
but i'd like this
$ program
to be treated as a separate command that does something other than provide the help.
I understand I can achieve this behaviour by modifying sys.argv[], but was wondering if there's an in-built way to specify a function to run when no commands are given.
Thanks for developing this tool by the way, it's excellent and i've found it really useful already!
When implementing the various commands using
@command, they are treated as necessary all the time. This works like$ program addor
$ program something-elsebut i'd like this
$ programto be treated as a separate command that does something other than provide the help.
I understand I can achieve this behaviour by modifying
sys.argv[], but was wondering if there's an in-built way to specify a function to run when no commands are given.Thanks for developing this tool by the way, it's excellent and i've found it really useful already!