From 125edc9c906dc3650b6a683ed13830075acb7ab6 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Thu, 8 Apr 2021 16:42:45 -0700 Subject: [PATCH] bail out for -h, -a, and -v in magic() --- jc/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jc/cli.py b/jc/cli.py index 7146449f..9d4467ee 100644 --- a/jc/cli.py +++ b/jc/cli.py @@ -398,8 +398,8 @@ def generate_magic_command(args): else: break - # if -h found in options, then bail out - if 'h' in options: + # if -h, -a, or -v found in options, then bail out + if 'h' in options or 'a' in options or 'v' in options: return False, None # all options popped and no command found - for case like 'jc -a'