Represents a command.
Thrown when program definition contains error.
Represents program.
auto program = new Program("grit") .add(new Flag("v", "verbose", "verbosity")) .add(new Command("branch", "branch management") .add(new Command("add", "adds branch") .add(new Argument("name")) ) .add(new Command("rm", "removes branch") .add(new Argument("name")) ) ) ;
Command, Program, parse
Program data model
This module along with commandr.option contains all types needed to build your program model - program options, flags, arguments and all subcommands.
After creating your program model, you can use it to: - parse the arguments with parse or parseArgs - print help with printHelp or just the usage with printUsage - create completion script with createBashCompletionScript