Bug 1481449 - Require at least one test argument for 'mach test'; r=ahal

This commit is contained in:
Geoff Brown 2018-08-31 09:59:07 -06:00
parent 5050624201
commit 79f5bdc311

View File

@ -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 "