Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add plural s to context in suggestions #4667

Merged
merged 1 commit into from Jan 23, 2023

Conversation

corneliusroemer
Copy link
Contributor

@corneliusroemer corneliusroemer commented Jan 23, 2023

I looked at the code and this seemed the best place to fix the behavior

Fixes #4666

Old: `note: subcommand 'test', 'temp' exist`
New: `note: subcommands 'test', 'temp' exist`
Fixes clap-rs#4666
@corneliusroemer corneliusroemer changed the title fix: add plural s to context in suggestions fix: Add plural s to context in suggestions Jan 23, 2023
src/error/format.rs Show resolved Hide resolved
tests/builder/subcommands.rs Show resolved Hide resolved
@epage epage merged commit 125dbe0 into clap-rs:master Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Singular used even when multiple suggestions exist note: subcommand 'foo', 'bar' exist
2 participants