Singular used even when multiple suggestions exist note: subcommand 'foo', 'bar' exist
#4666
Closed
2 tasks done
Labels
C-bug
Category: Updating dependencies
Please complete the following tasks
Rust Version
1.66.1
Clap Version
master
Minimal reproducible code
There already exists a test that expects the wrong grammar (intentionally?):
clap/tests/builder/subcommands.rs
Line 123 in 90c042e
This can be confusing, as the user could think that usage of singular has meaning and starts to think about why singular is used.
Steps to reproduce the bug with the above code
NA
Actual Behaviour
Expected Behaviour
-> Add a suffix
-s
subcommand
and get rid ofexists
suffix-s
Additional Context
Possible fix could be in
clap/src/error/format.rs
Lines 70 to 85 in 90c042e
Though this would require a bit of extra code = increased complexity.
Interestingly, the plural/singular of the
exist
/exists
part is correctly implemented already inclap/src/error/format.rs
Lines 440 to 460 in 90c042e
Debug Output
No response
The text was updated successfully, but these errors were encountered: