Subject: | lowlevel documentation confusion wrt vararg-options |
documentation bug (as I like the actual behaviour much more than my
interpretation of the description):
--list a b c -v can be parsed with Elisheva's example using Getop::Long
and a vararg option of list=s@{,}.
According to my reading of the 2.38 docs however, the --list option
should have eaten -v as well, as it states that args can start with - or
--. Which I'd take to mean that all further elements in @ARGV are eaten
by --list.
Please see for the example and the full thread:
http://perlmonks.org/?node_id=798692.
====
Btw. the module doesn't allow a configuration to stop eating varargs and
stop option processing when encountering an existing file?
[looks like I have to ask the user to just enter -- for this case;
still, I've seen enough that using this trick your module will allow me
significant code cleanup over my current getopt use. Thus ->]
A big thank you,
Peter