This function is deprecated. Use add_argument instead.
add.argument(
parser,
arg,
help,
default = NULL,
type = NULL,
flag = NULL,
short = NULL
)an arg.parser object with the argument added
an arg.parser object
argument name (use no prefix for positional arguments,
-- or - prefix for optional arguments or flags)
help description for the argument
default value for the argument [default: NA]
variable type of the argument (which can be inferred from
default), assumed to be character otherwise
whether argument is a flag (and does not consume a value) [default: FALSE]
short-form for flags and positional arguments; short-forms can be assigned automatically based on the first character of the argument name, unless a conflict arises with an existing short-form; to avoid conflicts, add the argument as early as possible