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 c8861bd commit fe0383f
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/scripts/cmd/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,21 @@
"""

bench_example = '''**Examples:**
bench_example = '''**Examples**:
> # 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 fe0383f

Please sign in to comment.