Plus sign flags or ignoring minus sign flags #5484
-
I'm working on a command akin to When I try to implement this via clap, as I have with many other commands in the ecosystem, this simply doesn't seem possible:
Is my only options implementing my own argument parser? Is there a way to disable minus flag recognition without so I can enjoy all the other luxuries of using the crate? Does clap plan on supporting plus sign flags or did I miss something in the documentation? I've tried looking for this topic multiple times but I'm not intimately familiar with the terminology so my search might've been off. This does seem like a rather useful/common thing to want from an argument parser though, so I'm not sure what to make of it. The documentation doesn't lend itself well to reading with understanding for people other than those who already understand the underlying mechanisms, so it's entirely possible I missed something, any help would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
#2468 is our issue for custom flags. You could use |
Beta Was this translation helpful? Give feedback.
#2468 is our issue for custom flags.
You could use
Arg::allow_hyphen_value
so-
prefixed values aren't always captured as flags.