Have test.py run all checks if no arguments given

test.py and test.py --check-all are now equivalent.
Previously test.py did nothing if no arguments were given.

Change-Id: I405323d48f92972578a4942f4947f2f61ce6756d
This commit is contained in:
Andreas Jaeger 2013-09-27 14:35:08 +02:00
parent 21cd991877
commit fb135ec0e1
1 changed files with 5 additions and 1 deletions

View File

@ -540,11 +540,15 @@ if __name__ == '__main__':
parser.add_argument("--check-niceness", help="Check the niceness of "
"files, for example whitespace.",
action="store_true")
parser.add_argument("--check-all", help="Run all checks",
parser.add_argument("--check-all", help="Run all checks "
"(default if no arguments are given)",
action="store_true")
parser.add_argument("--non-voting", help="Do not exit on failures",
action="store_false")
parser.add_argument("--verbose", help="Verbose execution",
action="store_true")
args = parser.parse_args()
if (len(sys.argv) == 1):
# No arguments given, use check-all
args.check_all = True
main(args)