-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
cast send
help text incorrect and incomplete
#2296
Comments
can't reproduce this cast send
error: The following required arguments were not provided:
<TO>
USAGE:
cast send [OPTIONS] <TO> [ARGS]
For more information try --help cast --version
cast 0.2.0 (16b4ef6 2022-07-13T00:07:21.31175Z) |
Here's my output with I'm on an intel macOS (so no M1), in case this is somehow OS dependent (which would be surprising). I get the same output running
|
I get this:
On Manjaro
Regardless, all of this is generated by Clap, so it's not really something we have complete control over. My best guess is that we all use different terminal emulators, and maybe Clap can query dimensions for some of them and display more info when the terminal is wide, and less when it is thin? |
turns out, the clap
so that makes sense, but it looks like the core is is that we have a bunch of additional arguments that are not needed here @onbjerg ? |
Unsure why it's there, it isn't marked as required anywhere |
The fix would be to write a custom args type since the one for |
I can't repro this as of the latest commit in master with After
Or with a wallet error if Anvil is running:
|
Yup this should not be the case anymore after we fixed up the |
Component
Cast
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (16b4ef6 2022-07-13T00:15:34.493056Z)
What command(s) is the bug in?
cast send
Operating System
macOS (Apple Silicon)
Describe the bug
re: https://twitter.com/msolomon44/status/1545848902674530305
cast send does not actually require the etherscan api key, but the usage text made me think that it does since it's the only argument described and included in the usage example
The text was updated successfully, but these errors were encountered: