Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

token-2022: add token 2022 argument to token cli for easy use #7006

Merged

Conversation

Woody4618
Copy link
Contributor

@Woody4618 Woody4618 commented Jul 10, 2024

Instead of copying the token program id of the token22 program one can now just write:

create-token --token-program-2022
or
create-token -2

Instead of coping the token program id of the token22 program one can now just write:
create-token -token22
@mergify mergify bot added the community Community contribution label Jul 10, 2024
@Woody4618
Copy link
Contributor Author

Woody4618 commented Jul 10, 2024

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.

Copy link
Contributor

@buffalojoec buffalojoec left a 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!

buffalojoec
buffalojoec previously approved these changes Jul 17, 2024
Copy link
Contributor

@buffalojoec buffalojoec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!!

@mergify mergify bot dismissed buffalojoec’s stale review July 17, 2024 07:51

Pull request has been modified.

@@ -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")
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure 🫡
done

Copy link
Contributor

@buffalojoec buffalojoec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@github-actions github-actions bot added the stale [bot only] Added to stale content; will be closed soon label Aug 2, 2024
@github-actions github-actions bot closed this Aug 9, 2024
@buffalojoec buffalojoec removed the stale [bot only] Added to stale content; will be closed soon label Aug 9, 2024
@buffalojoec buffalojoec reopened this Aug 9, 2024
@buffalojoec buffalojoec merged commit 1f988aa into solana-labs:master Aug 9, 2024
61 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community Community contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants