parse_args.Rd
If specified arguments are not valid, this function will print the usage information and exit the program with status=1.
parse_args(usage, args = commandArgs(TRUE), types = list())
usage | a docopt string describing program usage |
---|---|
args | a list of command-line arguments |
types | an optional list of types to which specific
arguments should be coerced, e.g. |
a list of parsed arguments