Hi
We've found that when using parse_args(..., positional_arguments=FALSE),
it is permissible to invoke our script with either "--myfoo=bar" or
"--myfoo bar"; that is, whether or not the equals sign is present makes
no difference, and in fact both usage forms are demonstrated in the
optparse vignette.
However, we've found that when using parse_args(...,
positional_arguments=TRUE), it is no longer possible to use the equals
sign; that is, "--myfoo=bar" will show up as a positional argument, with
"myfoo" set to its default value instead.
Wondering if this is really the intended behavior? Some of our scripts
use positional arguments and some do not, and we'd like to arrive at a
standard usage across all scripts.
Many thanks,
Ben
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.