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

remove unnecessary join and add comments

This commit is contained in:
Kelly Brazil
2020-02-13 10:14:32 -05:00
parent 81c11a975c
commit c8b502c571

View File

@ -210,12 +210,13 @@ def magic():
if ' '.join(args_given[0:2]) == magic_command:
found_parser = parser['argument']
break
elif ''.join(args_given[0]) == magic_command:
elif args_given[0] == magic_command:
found_parser = parser['argument']
break
except Exception:
return
# construct a new command line using the standard syntax: COMMAND | jc --PARSER -OPTIONS
run_command = ' '.join(args_given)
if found_parser:
if options:
@ -232,9 +233,10 @@ def magic():
def main():
# break on ctrl-c keyboard interrupt
signal.signal(signal.SIGINT, ctrlc)
# try magic syntax first: jc -p ls -al
# try magic syntax first: e.g. jc -p ls -al
magic()
options = []