Skip to content

Commit 7202350

Browse files
committed
Fixed some argument documentation issues.
1 parent 1fd7f7c commit 7202350

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

lib/pavilion/plugins/commands/build.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,9 @@ def _setup_arguments(self, parser):
3232
parser.add_argument(
3333
'-l', '--local-builds-only', action='store_true', default=False,
3434
help="Only build locally, don't kickoff builds on nodes.")
35+
parser.add_argument(
36+
'-f', '--file', dest='files', action='append', default=[],
37+
help='One or more files to read to get the list of tests to build. '
38+
'These files should contain a newline separated list of test '
39+
'names. Lines that start with a \'#\' are ignored as '
40+
'comments.')

lib/pavilion/plugins/commands/run.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ def _setup_arguments(self, parser):
5252
'then, cancel all tests and return a failure. Defaults to'
5353
'not checking tests before returning.'
5454
)
55+
parser.add_argument(
56+
'-f', '--file', dest='files', action='append', default=[],
57+
help='One or more files to read to get the list of tests to run. '
58+
'These files should contain a newline separated list of test '
59+
'names. Lines that start with a \'#\' are ignored as '
60+
'comments.')
5561
parser.add_argument(
5662
'-s', '--status', action='store_true', default=False,
5763
help='Display test statuses'
@@ -82,12 +88,6 @@ def _generic_arguments(parser):
8288
'configs are resolved. They should take the form '
8389
'\'key=value\', where key is the dot separated key name, '
8490
'and value is a json object.')
85-
parser.add_argument(
86-
'-f', '--file', dest='files', action='append', default=[],
87-
help='One or more files to read to get the list of tests to run. '
88-
'These files should contain a newline separated list of test '
89-
'names. Lines that start with a \'#\' are ignored as '
90-
'comments.')
9191
parser.add_argument(
9292
'-b', '--build-verbose', dest='build_verbosity', action='count',
9393
default=0,

0 commit comments

Comments
 (0)