Go home python, you're drunk

This commit is contained in:
Kload 2012-11-16 14:11:51 +01:00
parent b897c5e75c
commit 003cc1f543

View file

@ -56,10 +56,11 @@ def parse_dict(action_map):
""" """
# Intialize parsers # Intialize parsers
parsers = subparsers_category = subparsers_action = patterns = {} parsers = subparsers_category = subparsers_action = {}
parsers['general'] = argparse.ArgumentParser() parsers['general'] = argparse.ArgumentParser()
subparsers = parsers['general'].add_subparsers() subparsers = parsers['general'].add_subparsers()
new_args = [] new_args = []
patterns = {}
# Add general arguments # Add general arguments
for arg_name, arg_params in action_map['general_arguments'].items(): for arg_name, arg_params in action_map['general_arguments'].items():