-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
note: the argument '--option' exists
is too gruff
#4638
Comments
@epage |
@Mehrbod2002 the first step for this is going through the reddit thread, comparing the different options, and proposing a specific wording with justification for why that wording. After that depends on where this falls on the line for our compatibility expectations. If we decide this falls under "minor" then we need to wait longer before we can release 4.2. |
As a reminder, the rustc error:
|
reddit comments
|
Errors from other ecosystems $ grep --gfdgfg
grep: unrecognized option '--gfdgfg'
Usage: grep [OPTION]... PATTERNS [FILE]...
Try 'grep --help' for more information. $ python3 --jkhjk
unknown option --jkhjk
usage: python3 [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information. $ podman --jkhhjk
Error: unknown flag: --jkhhjk git --lkjjkhk
unknown option: --lkjjkhk
usage: git [--version] [--help] [-C <path>] [-c <name>=<value>]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
[--super-prefix=<path>] [--config-env=<name>=<envvar>]
<command> [<args>] |
Quick thoughts
|
This also has the advantage of aligning with `error:` This is a small part of clap-rs#4638
This also has the advantage of aligning with `error:` This is a small part of clap-rs#4638
One challenge with this is finding something that generally works. Making this work perfectly for one setting will make it inconsistent with other settings and take up more binary size / compile time. So in the end, I felt like just mirroring rustc (with a bit more brevity) seemed like a decent experiment. This will be evaluated by the feedback on release. This is a small part of clap-rs#4638
As this has been addressed for a while and there hasn't been any further concerns raised, I'm going to consider this resolved |
Please complete the following tasks
Rust Version
n/a
Clap Version
4.1.0
Minimal reproducible code
N/A
Steps to reproduce the bug with the above code
cmd --optio
Actual Behaviour
The suggestion is too gruff
Expected Behaviour
Ideas for lightening things:
note
totip
orhelp
help
tip
ashelp
is used as a word elsewhere in these messagesAdditional Context
We changed from "did you mean" to "note" in #4385.
This is split out of a reddit thread
The problem is changing this is pervasive enough that it would be a minor incompatibility according to our new contributing guidelines.
Debug Output
No response
The text was updated successfully, but these errors were encountered: