Skip to content

Commit

Permalink
Update cmd.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mordamax committed Jul 23, 2024
1 parent a7757ec commit c8861bd
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/scripts/cmd/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,19 @@
"""

bench_example = '''**Examples:**
```bash
# runs all benchmarks
%(prog)s
> # runs all benchmarks
> %(prog)s
# runs benchmarks for pallet_balances and pallet_multisig for all runtimes which have these pallets
# --quiet makes it to output nothing to PR but reactions
%(prog)s --pallet pallet_balances pallet_xcm_benchmarks::generic --quiet
> # runs benchmarks for pallet_balances and pallet_multisig for all runtimes which have these pallets
> # --quiet makes it to output nothing to PR but reactions
> %(prog)s --pallet pallet_balances pallet_xcm_benchmarks::generic --quiet
# runs bench for all pallets for polkadot runtime and continues even if some benchmarks fail
%(prog)s --runtime polkadot --continue-on-fail
> # runs bench for all pallets for polkadot runtime and continues even if some benchmarks fail
> %(prog)s --runtime polkadot --continue-on-fail
# does not output anything and cleans up the previous bot's & author command triggering comments in PR
%(prog)s --runtime polkadot kusama --pallet pallet_balances pallet_multisig --quiet --clean
```
> # does not output anything and cleans up the previous bot's & author command triggering comments in PR
> %(prog)s --runtime polkadot kusama --pallet pallet_balances pallet_multisig --quiet --clean
'''

parser_bench = subparsers.add_parser('bench', help='Runs benchmarks', epilog=bench_example, formatter_class=argparse.RawDescriptionHelpFormatter)
Expand Down

0 comments on commit c8861bd

Please sign in to comment.