Fix: repeated args should not append (but overwrite or ignore) if already have enough params #16
Closed
1 of 5 tasks
Labels
bug
Something isn't working
With
moons
taking 1 param,args-test.exe --moons=11 --unknown=123 --moons=-99
is now incorrect:The new
moons
should be ignored if it's a multi-value arg. and already has enough:--moons=1,2,3 --unknown=123 --moons=4,5 --moons=6
Should be 1, 2, 3 + error flags.
-> But... Now (after a ~year), however, I think the "it doesn't yet have enough..." case shouldn't actually be supported! -> #44 instead!
--moons=1,2,3 --junk --moons=4,5,6
?--moons=1,2 --junk --moons=3 -x --moons=4,5,6
? Shouldn't this accumulate all the params then? I feel that greediness is a weaker factor, though, than consistency (with the other arities).Actually...
Override
as default,Append
as an option...The text was updated successfully, but these errors were encountered: