Open
Description
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.
- Define arguments to parse at the global level
- Define multiple commands like GIT has
- Define arguments associated with specific commands.
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.
# ARG_CMD([cmd], [optional short form], [optional command help msg])
# ARG_CMD_OPTIONAL_SINGLE([cmd], [option], [o], [optional argument help msg])
# ARG_CMD_OPTIONAL_BOOLEAN([cmd], [print], , [boolean optional argument help msg])
# ARG_CMD_POSITIONAL_SINGLE([cmd], [positional-arg], [positional argument help msg], )
# ARG_CMD_HELP([cmd], [The general script's help msg])