Open epage opened 2 years ago
@shannmu is there a reason #5602 didn't close this?
The issue still seems to be related to allow_hyphen_values
, where the completion for the delimited option includes the possible values of positional arguments (if they are also delimited). This is not caused by this issue, but it shows that the issue has not been fully resolved.
I don't what allow_hyphen_values
has to do with value_delimiter
. I don't quite understand your explanation. Mind re-phrasing or providing examples?
--delimiter=comma
is treated as a delimited positional argument. We complete positional argument without conditions required when the current state is ValueDone
, so it will call complete_arg_value
.
https://github.com/clap-rs/clap/blob/d81158599f5b3a2434845a1731377eae84780b9a/clap_complete/src/dynamic/complete.rs#L216-L221
@shannmu I had missed that. If there is a known issue in a PR, call it out. That should have been discussed before merging.
See #3166 for more context