mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
Handle case where only options are passed.
This commit is contained in:
@ -209,6 +209,10 @@ def magic():
|
|||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
if len(args_given) == 0:
|
||||||
|
# This was a call to jc with just options and no commands.
|
||||||
|
return
|
||||||
|
|
||||||
# find the command and parser
|
# find the command and parser
|
||||||
command = ' '.join(args_given[0:2])
|
command = ' '.join(args_given[0:2])
|
||||||
for parser in parser_info:
|
for parser in parser_info:
|
||||||
|
Reference in New Issue
Block a user