Add Parser::set_short_equals() setting for disabling -o=value#24
Conversation
|
Any chance this PR will get merged eventually? For what it’s worth, I am still using this crate actively on v0.1.0 for my projects, as |
|
Thanks for reminding me, I'll merge this soon. I'm only debating whether to call it Is |
6df3353 to
7670937
Compare
|
For some it is theoretical, and for others it’s commonly used. One I use absolutely all the time is I have a program that aligns text on a character, and I use it with I also have a program to do some audio stuff, where a value of |
Parser::parse_short_equals() setting for disabling -o=valueParser::set_short_equals() setting for disabling -o=value
|
Thanks for the examples! I've published a new release. |
Since v0.2.0
-o=valuehas been parsed as option-owith valuevalue. This is nonstandard but compatible withclap.This PR adds a
parse_short_equals(bool)method to configure this. If disabled the equals sign is treated as part of the value, i.e.-owith value=value.This is for example useful for
cut's-doption, which is often invoked ascut -d=. That makes it relevant for https://github.com/uutils/uutils-args.Resolves #13.
cc @tertsdiepraam