mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Print useful error messages when invalid options are given (flutter/engine#37212)
This commit is contained in:
parent
51c4ccf7b3
commit
5e12486ff9
@ -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(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user