Subcommands
Subcommands are a little different. They need the reference
property and their options are located in the base command. Here is an example:
Note: you can handle the subcommands in the main command if you do not create the SLSubCommand.
Do not forget: onExecute
or addSubCommand
must be the last functions, so the command is properly registered.
Base/Main Command:
Sub command:
Last updated