1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-13 01:20:24 +02:00

bail out for -h, -a, and -v in magic()

This commit is contained in:
Kelly Brazil
2021-04-08 16:42:45 -07:00
parent 15ea43e394
commit 125edc9c90

View File

@ -398,8 +398,8 @@ def generate_magic_command(args):
else: else:
break break
# if -h found in options, then bail out # if -h, -a, or -v found in options, then bail out
if 'h' in options: if 'h' in options or 'a' in options or 'v' in options:
return False, None return False, None
# all options popped and no command found - for case like 'jc -a' # all options popped and no command found - for case like 'jc -a'