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

simplify parser_map code

This commit is contained in:
Kelly Brazil
2019-11-07 09:02:27 -08:00
parent 5da83e0200
commit 579124475b

View File

@ -121,7 +121,7 @@ def main():
found = False
for arg in sys.argv:
if arg in list(parser_map.keys()):
if arg in parser_map:
result = parser_map[arg](data, raw=raw, quiet=quiet)
found = True
break