command
command copied to clipboard
CLI subcommands for Go
This PR provides improvements to the original code: - help.Usage: - This is necessary to match the behaviour of common Unix usage where programs can take: `prog -h, prog --help,...
It would be nice to be able to specify a prefix and if a subcommand is not found look for an executable in the PATH that matches prefix-subcommand and execute...
The main interface is unchanged, but it is now possible to nest subcommands. a nested subcommand is also a Cmd, this package provides a help object "Commander", that you can...