File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,12 @@ def main(args):
80
80
81
81
opts = parser .parse_args (args )
82
82
command = command_map .get (opts .command_name )
83
+ if not command :
84
+ parser .print_usage ()
85
+ return
86
+
83
87
command_method = command .get ("method" , None )
84
88
if command_method :
85
89
return command_method (opts )
90
+ else :
91
+ parser .print_usage ()
Original file line number Diff line number Diff line change @@ -87,6 +87,12 @@ def main(args):
87
87
88
88
opts = parser .parse_args (args )
89
89
command = command_map .get (opts .command_name )
90
+ if not command :
91
+ parser .print_usage ()
92
+ return
93
+
90
94
command_method = command .get ("method" , None )
91
95
if command_method :
92
96
return command_method (opts )
97
+ else :
98
+ parser .print_usage ()
Original file line number Diff line number Diff line change @@ -101,6 +101,12 @@ def main(args):
101
101
102
102
opts = parser .parse_args (args )
103
103
command = command_map .get (opts .command_name )
104
+ if not command :
105
+ parser .print_usage ()
106
+ return
107
+
104
108
command_method = command .get ("method" , None )
105
109
if command_method :
106
110
return command_method (opts )
111
+ else :
112
+ parser .print_usage ()
You can’t perform that action at this time.
0 commit comments