fix: Add default empty value for help in sub-commands

This commit is contained in:
cr0hn
2016-03-18 13:40:11 +01:00
parent 91617ea840
commit 8995411c08

View File

@@ -139,7 +139,7 @@ def build_arg_parser(config=None, modules=None, parser=None):
if x == "default": if x == "default":
continue continue
sub_help = y['help'] sub_help = y.get('help', "")
sub_action = y.get('cmd_args', None) sub_action = y.get('cmd_args', None)
sub_sub_parser = sub_module_actions.add_parser(x, help=sub_help) sub_sub_parser = sub_module_actions.add_parser(x, help=sub_help)