1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-21 00:19:42 +02:00

Merge pull request #33 from philippeitis/patch-2

Handle case where only options are passed.
This commit is contained in:
Kelly Brazil
2020-03-04 15:28:09 -08:00
committed by GitHub

View File

@ -209,6 +209,10 @@ def magic():
else:
break
if len(args_given) == 0:
# This was a call to jc with just options and no commands.
return
# find the command and parser
command = ' '.join(args_given[0:2])
for parser in parser_info: