Skip to content

Commit

Permalink
Fix arg parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed Jul 8, 2024
1 parent 6e75442 commit 7a5ea54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyperf/_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def __init__(self, values=None, processes=None,

hook_names = list(get_hook_names())
parser.add_argument(
'--hook', nargs="*", choices=hook_names,
'--hook', action="append", choices=hook_names,
metavar=f"{', '.join(x for x in hook_names if not x.startswith('_'))}",
help='Use the given pyperf hooks'
)
Expand Down

0 comments on commit 7a5ea54

Please sign in to comment.