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(multicall): Polish user messages #3677

Merged
merged 6 commits into from
May 2, 2022
Merged

fix(multicall): Polish user messages #3677

merged 6 commits into from
May 2, 2022

Conversation

epage
Copy link
Member

@epage epage commented May 2, 2022

This goes a long way towards resolving #2862 and in general polishing multicall for becoming stable.

The only thing that isn't ideal is that the error message refers to it as a subcommand when in some cases its a command.

epage added 6 commits May 2, 2022 09:12
By removing all arguments, we've switched from an "unrecognized
argument" error to a "unrecognized subcommand" error.  While the wording
has room for improvement, its at least progress on clap-rs#2862.
For some reason this code path diverged and manually constructed a
usage, not following any of our patterns for doing so.
Set expectations for how this can be used and to make sure the right
errors are given.
@epage
Copy link
Member Author

epage commented May 2, 2022

cc @fishface60

@epage epage merged commit d33812f into clap-rs:master May 2, 2022
@epage epage deleted the multicall branch May 2, 2022 17:59
@fishface60
Copy link
Contributor

cc @fishface60

Thanks for picking this up after I ran out of hobby time. The improvements to output look good to me.

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.

2 participants