You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When user uses incorrect CLI options, clap tries to generate a helpful error message:
Usage: subspace-farmer cluster --nats-server <NATS_SERVERS> cache <DISK_CACHES|--tmp <TMP>|--cache-group <CACHE_GROUP>|--service-instances <SERVICE_INSTANCES>|ADDITIONAL_COMPONENTS>
tip: to pass '--cache-groups' as a value, use '-- --cache-groups'
tip: a similar argument exists: '--cache-group'
error: unexpected argument '--cache-groups' found
The issue here is that "tip: to pass '--abc' as a value, use '-- --abc'" is rarely a desired outcome in my experience.
What is more helpful is the next tip after that indicating a minor typo.
Describe the solution you'd like
Sort tips with those that are more likely to happen first, in above example suggest to use similarly named CLI option before value argument.
Alternatives, if applicable
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Do you have minimal reproduction steps for getting that error message? Our tests are showing those error messages in the reverse order and I can't see how that order would happen when inspecting the code.
Please complete the following tasks
Clap Version
4.5.18
Describe your use case
When user uses incorrect CLI options, clap tries to generate a helpful error message:
The issue here is that "tip: to pass '--abc' as a value, use '-- --abc'" is rarely a desired outcome in my experience.
What is more helpful is the next tip after that indicating a minor typo.
Describe the solution you'd like
Sort tips with those that are more likely to happen first, in above example suggest to use similarly named CLI option before value argument.
Alternatives, if applicable
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: