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