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

add comments to magic_parser return

This commit is contained in:
Kelly Brazil
2021-05-10 21:23:23 -07:00
parent a56aebfe70
commit 5f88ecf844

View File

@ -453,12 +453,11 @@ def magic_parser(args):
# try to get a parser for two_word_command, otherwise get one for one_word_command # try to get a parser for two_word_command, otherwise get one for one_word_command
found_parser = magic_dict.get(two_word_command, magic_dict.get(one_word_command)) found_parser = magic_dict.get(two_word_command, magic_dict.get(one_word_command))
run_command = args_given
return ( return (
True if found_parser else False, True if found_parser else False, # was a suitable parser found?
run_command, args_given, # run_command
found_parser, found_parser, # the parser selected
options options # jc options to preserve
) )