How can I use getopt or getopts with subcommands and long options, not with short options? I know how to implement short and long options with getopts.
Solutions that I've found so far are using getopts in subcommand switch-case but with short options, for example:
Using getopts to parse options after a non-option argument
How can I implement for example following subcommands and their long options?:
$> ./myscript.sh help
show
show --all
set
set --restart
reset
reset --restart
help