-
Just wonder if there is possibility or how much of the work to support sub-sub-commands? e.g.: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, I have not tried this, but it should already be supported.
Supplemented it with options/arguments to make it look like follows:
To parse it, we need to perform three parses. First parse (for command):
Second parse (for sub-cmd1):
Third parse (for sub-sub-cmd1):
In other words, the number of subcommands+1 parser definition is required. Defining this in a single shell script would make it hard to read, but if we were developing something large enough to require this, we will separate each subcommand into its own file. In other words, the parser definition is defined in the main shell script and in the shell script for each subcommand. See also #16. |
Beta Was this translation helpful? Give feedback.
Hi,
I have not tried this, but it should already be supported.
Supplemented it with options/arguments to make it look like follows:
To parse it, we need to perform three parses.
First parse (for command):
Second parse (for sub-cmd1):
Third parse (for sub-sub-cmd1):
In other words, the number of subcommands+1 parser definition is required. Def…