Skip to content

Commit 6d9de4c

Browse files
committed
Multiple filters are specified by repeated -f
Updated usage documentation to reflect this.
1 parent 481f542 commit 6d9de4c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

benchmark/scripts/Benchmark_Driver

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def positive_int(value):
352352

353353
def main():
354354
parser = argparse.ArgumentParser(
355-
epilog='Example: ./Benchmark_Driver run -i 5 -f Array'
355+
epilog='Example: ./Benchmark_Driver run -i 5 -f Prefix -f Suffix -f Drop'
356356
)
357357
subparsers = parser.add_subparsers(
358358
title='Swift benchmark driver commands',
@@ -365,8 +365,9 @@ def main():
365365
default=[],
366366
help='benchmark to run (default: all)', nargs='*', metavar="BENCHMARK")
367367
benchmarks_group.add_argument(
368-
'-f', '--filter', dest='filters', nargs='*',
369-
help='run all tests whose name starts with PREFIX', metavar="PREFIX")
368+
'-f', '--filter', dest='filters', action='append',
369+
help='run all tests whose name starts with PREFIX, '+
370+
'multiple filters are supported', metavar="PREFIX")
370371
parent_parser.add_argument(
371372
'-t', '--tests',
372373
help='directory containing Benchmark_O{,none,unchecked} ' +

0 commit comments

Comments
 (0)