Replies: 3 comments 1 reply
-
The prior change (#4919, #4924) required some analysis to determine the scope and depth of impact for whether it can be done in a minor release, needs to wait for a major, or whether it shouldn't be done at all. I'll have to step through this when I have more focus time to figure out where this change lands in all of that. |
Beta Was this translation helpful? Give feedback.
1 reply
-
4.3.19 is out with a fix for the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks, I opened a new issue: #5039 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Clap v4.3.0 introduced this change:
Are there any plans to introduce similar changes for
#[arg(last = true)]
?I would like
last
to take precedence overallow_hyphen_values
.Here is an example with clap 4.3.3:
I would like to distinguish between
opts
andcmdline
by separating them with a--
. However, it does not work becauseallow_hyphen_values
has higher precedence thanlast
as of Clap 4.3.3.Here are some tests in Bash:
I also tried
value_terminator = "--"
, but it is not successful.I prefer
last
tovalue_terminator = "--"
becauselast
always requires--
, which makes the command line clearer and easier for me to understand.value_terminator = "--"
is confusing when there is no--
as in the above tests.So I want to use
last
, but then I face the precedence problem.Would you consider allowing
last
to take precedence overallow_hyphen_values
?Beta Was this translation helpful? Give feedback.
All reactions