Index: build/android/test_runner.py |
diff --git a/build/android/test_runner.py b/build/android/test_runner.py |
index 8655720810882b7b9c3d834348890352510315bb..a0e6ba30b71d92f222c30ed7ba5824c854e1cfed 100755 |
--- a/build/android/test_runner.py |
+++ b/build/android/test_runner.py |
@@ -676,8 +676,7 @@ def main(argv): |
command_list=VALID_COMMANDS.keys()) |
if len(argv) < 2 or argv[1] not in VALID_COMMANDS: |
- option_parser.print_help() |
- return 0 |
+ option_parser.error('Invalid command.') |
command = argv[1] |
VALID_COMMANDS[command].add_options_func(option_parser) |
options, args = option_parser.parse_args(argv) |