-
Notifications
You must be signed in to change notification settings - Fork 2.3k
token-2022: add token 2022 argument to token cli for easy use #7006
token-2022: add token 2022 argument to token cli for easy use #7006
Conversation
Instead of coping the token program id of the token22 program one can now just write: create-token -token22
Im not 100% sure if restrict_to_program_id should be true or false. My guess reading line 2215 command_accounts is that it should be 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 is a handy enhancement, but let's make it even more beneficial to users with a couple suggestions!
Thanks for rolling this in!
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!!
Pull request has been modified.
token/cli/src/clap_app.rs
Outdated
@@ -591,6 +591,15 @@ pub fn app<'a, 'b>( | |||
.possible_values(&["json", "json-compact"]) | |||
.help("Return information in specified output format"), | |||
) | |||
.arg( | |||
Arg::with_name("program_2022") | |||
.short("2") |
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 PR is ready to go in except for this. We really don't want to use a number for a short arg like this, since it manifests as <command> -2
and that could easily be mistaken for a numerical negative two.
Can we just drop the .short
here?
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.
Sure 🫡
done
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!
Instead of copying the token program id of the token22 program one can now just write: