From 69576f6bfae073196627a0a39b5ececb8666d25c Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Wed, 4 Mar 2020 12:03:40 -0800 Subject: [PATCH] minor sytax fixes --- jc/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jc/cli.py b/jc/cli.py index 6e3a643a..7edd1895 100644 --- a/jc/cli.py +++ b/jc/cli.py @@ -187,7 +187,7 @@ def magic(): """Parse with magic syntax: jc -p ls -al""" if len(sys.argv) <= 1 or sys.argv[1].startswith('--'): return - + parser_info = about_jc()['parsers'] # correctly parse escape characters and spaces with shlex args_given = " ".join(map(shlex.quote, sys.argv[1:])).split() @@ -225,7 +225,7 @@ def magic(): pass # second pass for one word commands: e.g. 'ls' - elif args_given[0] in parser['magic_commands'] + elif args_given[0] in parser['magic_commands']: try: found_parser = parser['argument'] break @@ -263,7 +263,7 @@ def main(): debug = 'd' in options pretty = 'p' in options quiet = 'q' in options - raw = 'r' in raw + raw = 'r' in options if 'a' in options: json_out(about_jc(), pretty=pretty)