injekt/slop — Issue #46: non-option parsed as option and removed from array
Author: banister
Created: 2012-01-16 06:35:28+00:00
State: open

If i use a positive number Slop works as expected: `args = ["2"]; Slop.parse!(args); args #=> ["2"]`

But if i want to use a negative number as a non-option i get: `args = ["-2"]; Slop.parse!(args); args #=> []`

Slop appears to be intrepreting the `-2` as an option (though unrecognized) and so removing it from the array.

AFAIK numbers are not valid options so this is incorrect behaviour,

thx