| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
If flag value starts with "-", unknown option error is raised.
The current flag value check is "orig_arg == opt.value.to_s". There
are some objects such as Regexp and Time that input value and its #to_s
aren't same.
|
|
|
|
|
|
|
| |
If the string includes an equals char but doesn't look like it's a
possible candidate for a flag=value, we should ignore it
see #226
|
|
|
|
|
|
|
|
| |
Everything after -- is sacred and shouldn't be mutated. So lets just
remove it all straight away and add it to our arguments list after we're
done parsing
Closes #194
|
|
|
|
|
|
|
| |
Thanks to @RickHull for the "smashing" terminology and various
conversations
Fixes #199
|
|
|
|
|
|
|
|
| |
This allows negative values as arguments to numeric options and strings
starting with - for any other type.
Fixes #170
Fixes #179
|
|
|
|
|
|
|
|
|
|
| |
This fixes the bug introduced in ebe678b1639654604b3e54b08ca710c38682b83e
where the argument after a flag is naively deleted. For example, with
--foo=bar baz
, both `--foo=bar' and `baz' are deleted when only `--foo=bar' should be
deleted.
|
|
|
|
| |
See #181.
|
|
|
|
|
| |
The double dash is a valid (special) option for Slop, so like the rest
of the options successfully processed, should be removed.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|