Extends the capabilities of package argparse, e.g., in defining sub commands.
parseCMD parse command line arguments for
sub-commands, and dispatch to the associated function.
CLIArgumentParser(prog = CLIfile(), description = "",
..., epilog = "", show.defaults = TRUE) parseCMD(parser, ARGS = commandArgs(TRUE), debug = FALSE,
envir = parent.frame())
program name
program description
extra arguments passed to
ArgumentParser.
epilog messages to display at the end of the man pages
logical that indicates if default arugment values should be displayed.
parser object as returned by
CLIArgumentParser.
command line argument to parse, as a named list or a character string.
logical that indicate if debugging information should be printed.
environment that contains where the sub-command functions are looked for.