Description Usage Arguments Value Methods (by class) Examples
Add switch argument to parser.
1 2 3 4 5 |
x |
An ArgParser object. |
name |
Character vector of the switch name. Should be of length 1 and prefixed with "--". |
... |
Other arguments used in dispatched method. |
short |
Optional alias for the switch. Should be of length 1 and prefixed with "-". |
states |
Optional states of unpushed/pushed in list of length 2, or a logical vector of length 1 with the unpushed state. |
help |
Optional character vector shown in usage for the switch. If any, should be of length 1. |
An ArgParser with the switch definition added.
x = ArgParser,name = character
:
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.