
24 Nov
2004
24 Nov
'04
3:48 p.m.
Caleb Epstein wrote:
I just don't see any solution to make unknown options work without either -- requiring --something=10 format -- requiring that all positional options are at the end
What about the combination of (if some user-settable switch is thrown, but not by default):
* allowing unknown options -- these are considered positional parameters * rearranging the argument list such that all positional parameters are moved to the end
This way:
program --unknown 42 --known-flag --known-arg value
is handled as if it were (in standard UNIX command-line-ese):
program --known-flag --known-arg value -- --unknown 42
Looks possible. I'll add this suggestion to my todo. - Volodya