It is not documented that 'from argvName option ?default?' only finds the first occurence of the option.
It is not documented that no attempt is made to resolve how to handle multiple occurences of the same option.
The flaw: from is able to find an option name, even if it was actually the value for a different option and thus not really an option.
set argv {-foo -bar -snarf 0}
from argv -bar x
=> returns -snarf as value
and argv changes to {-foo 0}
Should have returned x, as -bar is not present as option, only as value to option -foo.
Hmmmm. Yeah, that's a bug. Practically speaking, "from" should:
1. Only look at even indices.
2. Remove *all* instances of an option, if there's more than one.
3. Return the value for the final instance.
And then, of course, the documentation needs to reflect this. OK, Andreas,
you're batting 1000 on this one.