-
Notifications
You must be signed in to change notification settings - Fork 59
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 withdraw-withheld-tokens
CLI subcommand showing wrong order of arguments in 'Usage'
#312
Conversation
withdraw-withheld-tokens
CLI showing wrong order of arguments in 'Usage'withdraw-withheld-tokens
CLI subcommand showing wrong order of arguments in 'Usage'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution! The updated value names and help text is definitely good, but let's see what we can do with the arg group part
.group( | ||
ArgGroup::with_name("account_group") | ||
.arg("account") | ||
.required(true) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would create a bug unfortunately -- if you just want to withdraw withheld fees from the mint, the command would fail since accounts are required.
Rather than adding this new group, we can remove the following group (ArgGroup::with_name("source_or_mint")
). That would cause no-ops if neither --include-mint
nor any accounts are provided, but maybe that's better than the help text being incorrect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh never mind, this actually works! I tested it out and it actually does everything properly.
Let's just go with this -- can you just add a comment explaining that we need this in order to show the help text correctly?
Ok will do. I’ll add the comment in a bit! Currently not at laptop
…On Mon, 24 Mar 2025 at 20:19, Jon C ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In clients/cli/src/clap_app.rs
<#312 (comment)>
:
> + .group(
+ ArgGroup::with_name("account_group")
+ .arg("account")
+ .required(true)
+ )
Oh never mind, this actually works! I tested it out and it actually does
everything properly.
Let's just go with this -- can you just add a comment explaining that we
need this in order to show the help text correctly?
—
Reply to this email directly, view it on GitHub
<#312 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACTU44UWX64FSP344EIQGLT2V7Z3TAVCNFSM6AAAAABZTCWE52VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDOMJQGE4DMNBVG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Motivation
Closes #311
Changes
renamed arguments and amended descriptions.
From
to
and from
to
The
Usage
output has been updated (corrected) fromto
Testing
Run
Output will be like so:
Which correctly