Skip to contents

Make a new scribeArg object

Usage

new_arg(
  aliases = "",
  action = arg_actions(),
  default = NULL,
  convert = scribe_convert(),
  n = NA_integer_,
  info = NULL,
  options = list(),
  stop = c("none", "hard", "soft"),
  execute = invisible
)

Arguments

aliases, action, convert, options, default, info, n, stop, execute

See $initialize() in scribeArg.

Value

A scribeArg object

Examples

new_arg()
#> Argument [] : <null>
new_arg("values", action = "dots")
#> Argument [values] : <null>
new_arg(c("-f", "--force"), action = "flag")
#> Argument [-f --force --no-force] : FALSE