-
According to doc here, Is there any strong reason for this feature? This seems quite inconvenient to me. Would really like to have another option to allow omitting the double dash if not right behind another multi- By the way, the current help message for
but it should actually be
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
It's how the parsing happens. I haven't actually looked at this part since I took over the maintenance, so I am not sure behind the reasons why it is done like this. |
Beta Was this translation helpful? Give feedback.
-
Tracking issue of The related code is here: Lines 517 to 528 in 50fb4ca It's by design, according to the issue and the code. You can create an issue for discussion. (BTW, I think the behaviour is strange too.) |
Beta Was this translation helpful? Give feedback.
Tracking issue of
Arg::Last
: #888The related code is here:
clap/src/parse/parser.rs
Lines 517 to 528 in 50fb4ca
It's by design, according to the issue and the code. You can create an issue for discussion. (BTW, I think the behaviour i…