1
0
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:
philippeitis
2020-03-04 13:16:35 -08:00
committed by GitHub
parent 69576f6bfa
commit a63408c8cf

View File

@ -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: