mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1481449 - Require at least one test argument for 'mach test'; r=ahal
This commit is contained in:
parent
5050624201
commit
79f5bdc311
@ -74,7 +74,7 @@ class TestConfig(object):
|
||||
def get_test_parser():
|
||||
from mozlog.commandline import add_logging_group
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('what', default=None, nargs='*', help=TEST_HELP)
|
||||
parser.add_argument('what', default=None, nargs='+', help=TEST_HELP)
|
||||
parser.add_argument('extra_args', default=None, nargs=argparse.REMAINDER,
|
||||
help="Extra arguments to pass to the underlying test command(s). "
|
||||
"If an underlying command doesn't recognize the argument, it "
|
||||
|
Loading…
Reference in New Issue
Block a user