Print useful error messages when invalid options are given (flutter/engine#37212)

This commit is contained in:
Kaushik Iska 2022-11-01 14:59:13 -04:00 committed by GitHub
parent 51c4ccf7b3
commit 5e12486ff9

View File

@ -223,6 +223,7 @@ def main():
subparsers = parser.add_subparsers(help='sub-command help')
parser.add_argument('--adb', type=str, help='path to ADB tool')
parser.add_argument('--device', type=str, help='serial number of the target device')
parser.set_defaults(func=lambda args: parser.print_help())
commands = [
GdbClient(),