dalance/amber

ambr fails to match/replace some match with `- `

Closed this issue · 1 comments

I tried to use ambr to replace * with - in some files and I got

$ ambr '* ' '- ' .
error: Found argument '- ' which wasn't expected, or isn't valid in this context

USAGE:
    ambr [FLAGS] [OPTIONS] <KEYWORD> <REPLACEMENT> [PATHS]...

For more information try --help

After I dug a little bit, I found that structop fails to parse positional arguments that start with - (dash + space), hence ambr returns that error if something starting with - is passed to <KEYWORD> or <REPLACEMENT>.