Open myramoki opened 10 months ago
Otherwise known as command subcommand.. Yes I was looking for this too. I don't believe it's easy to do with argbash at the moment. Off the top of my head, perhaps one can pass all arguments through to all the functions and the functions can just ignore what doesn't apply. Doesn't seem too elegant.
First time here and it seems development has halted on argbash. Too bad.
I would really like to be able to use Argbash to create a GIT style argument processing. This would allow for a couple different items.
Processing would allow a script with the following form:
script-name [ global-arguments... ] cmd-name [ cmd-specific-args... ]
Then I could use it to create scripts where I could call it like:
prodadm -debug install -name games
I was envisioning a configuration syntax of new ARG_CMD... options, which associate the argument processing with a specific command, and allow the same argument name to be used in different ways for different commands.