A character vector containing command line options to be parsed.
Default is everything after the Rscript program in the command line. If
positional_arguments is not FALSE then parse_args will
look for positional arguments at the end of this vector.
print_help_and_exit
Whether parse_args should call
print_help to print out a usage message and exit the program. Default
is TRUE.
positional_arguments
Number of positional arguments. A numeric
denoting the exact number of supported arguments, or a numeric vector of
length two denoting the minimum and maximum number of arguments
(Inf for no limit). The value TRUE is equivalent to
c(0, Inf). The default FALSE is
supported for backward compatibility only, as it alters
the format of the return value.
Value
Returns a list with field options containing our option values
as well as another field args which contains a vector of
positional arguments. For backward compatibility, if and only if
positional_arguments is FALSE, returns a list containing
option values.
Acknowledgement
A big thanks to Steve Lianoglou for a bug report and patch;
Juan Carlos Borrás for a bug report;
Jim Nikelski for a bug report and patch;
Ino de Brujin and Benjamin Tyner for a bug report;
Jonas Zimmermann for bug report; Miroslav Posta for bug reports;
Stefan Seemayer for bug report and patch;
Kirill Müller for patches; Steve Humburg for patch.