cargo-contract icon indicating copy to clipboard operation
cargo-contract copied to clipboard

Add flag `-y` that says `Yes` to every prompt

Open cmichi opened this issue 2 years ago • 1 comments

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

cmichi avatar Apr 04 '23 07:04 cmichi

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

ltfschoen avatar May 11 '23 07:05 ltfschoen