CLIArgumentParser {pkgmaker} | R Documentation |
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())
prog |
program name |
description |
program description |
... |
extra arguments passed to
|
epilog |
epilog messages to display at the end of the man pages |
show.defaults |
logical that indicates if default arugment values should be displayed. |
parser |
parser object as returned by
|
ARGS |
command line argument to parse, as a named list or a character string. |
debug |
logical that indicate if debugging information should be printed. |
envir |
environment that contains where the sub-command functions are looked for. |