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

Add flag -y that says Yes to every prompt #1062

Open
cmichi opened this issue Apr 4, 2023 · 1 comment
Open

Add flag -y that says Yes to every prompt #1062

cmichi opened this issue Apr 4, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@cmichi
Copy link
Collaborator

cmichi commented Apr 4, 2023

As a shortcut for e.g. --skip-confirm --skip-dry-run.

@cmichi cmichi added the enhancement New feature or request label Apr 4, 2023
@ltfschoen
Copy link

ltfschoen commented May 11, 2023

yes, great thinking

an example would be running:

cargo contract instantiate --suri //Bob --constructor new  --args true --execute

which outputs the following

 Dry-running new (skip with --skip-dry-run)
    Success! Gas required estimated at Weight(ref_time: 328662761, proof_size: 0)
Confirm transaction details: (skip with --skip-confirm)
 Constructor new
        Args true
   Gas limit Weight(ref_time: 328662761, proof_size: 0)
Submit? (Y/n): Y

so you have to manually enter Y for it to actually execute, or also use the option --skip-confirm for it to automatically skip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants