F
Florian Kaufmann
What can Getopt::Long, or any other 'standard' module offer me for
this problem task:
I have an option which expects a string argument. But a) only a finite
set of strings are to be accepted b) unique abbreviations shall be
accepted, e.g. if the set of valid strings is ("foo","bar","fly") then
"fo" should stand for "foo".
An example for such a use case is the --backup[=CONTROL] option of
many coreutils tools as for example cp, ln, install. CONTROL can only
be ("no","off","numbered"... and a few more).
this problem task:
I have an option which expects a string argument. But a) only a finite
set of strings are to be accepted b) unique abbreviations shall be
accepted, e.g. if the set of valid strings is ("foo","bar","fly") then
"fo" should stand for "foo".
An example for such a use case is the --backup[=CONTROL] option of
many coreutils tools as for example cp, ln, install. CONTROL can only
be ("no","off","numbered"... and a few more).