Description Usage Arguments Value Methods (by generic) Slots Examples
An S4 class to represent a command line arguments parser.
1 2 | ## S4 method for signature 'ArgParser'
initialize(.Object, desc = "", prog = "")
|
.Object |
A prototyped object of class ArgParser. |
desc |
A description shown in usage. desc with length > 1 will be printed in seperated lines. |
prog |
A program name shown in usage, if not set, will default to the value of "--file=" flag given in commandArg(). |
An S4 object of class ArgParser.
initialize: The Constructer used for class ArgParser.
descA description shown in usage. desc with length > 1 will be printed in seperated lines.
progA program name shown in usage, if not set, will default to the value of "--file=" flag given in commandArg().
flagsA list of defined flag arguments.
flags_aliasA character vector of defined flag alias.
flags_isOptionalA logical vector indicating wheather a flag is optional or not.
switches_logicA logical vector of defined logical switch arguments.
switches_anyA list of defined ad-hoc switch arguments.
switches_aliasA character vector of defined switch alias.
optA character vector of defined positional arguments.
opt_nargAn integer vector indicating the number of positinal arguments to consume for each opt.
opt_nrequiredAn integer vector indicating the number of required positional arguments to consume for each opt.
helpA character vector of defined help message for each argument.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.