

def __call__(self, parser, namespace, values, option_string=None):
    parser.print_help()
    print
    subparsers_actions = [action for action in parser._actions if isinstance(action, argparse._SubParsersAction)]
    for subparsers_action in subparsers_actions:
        for (choice, subparser) in subparsers_action.choices.items():
            print("Command '{}'".format(choice))
            print(subparser.format_usage())
    parser.exit()

dataset/ETHPy150Open istresearch/scrapy-cluster/utils/scutils/argparse_helper.py ArgparseHelper.__call__/original