Skip to content

Conversation

@blyxxyz
Copy link
Owner

@blyxxyz blyxxyz commented Jul 24, 2025

Since v0.2.0 -o=value has been parsed as option -o with value value. This is nonstandard but compatible with clap.

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. -o with value =value.

This is for example useful for cut's -d option, which is often invoked as cut -d=. That makes it relevant for https://github.com/uutils/uutils-args.

Resolves #13.

cc @tertsdiepraam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Please provide way to parse -o=value as option taking value =value

2 participants