Skip to content

Commit f4da34f

Browse files
authored
Print useful error messages when invalid options are given (flutter#37212)
1 parent 3744bf7 commit f4da34f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sky/tools/flutter_gdb

+1
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ def main():
223223
subparsers = parser.add_subparsers(help='sub-command help')
224224
parser.add_argument('--adb', type=str, help='path to ADB tool')
225225
parser.add_argument('--device', type=str, help='serial number of the target device')
226+
parser.set_defaults(func=lambda args: parser.print_help())
226227

227228
commands = [
228229
GdbClient(),

0 commit comments

Comments
 (0)