def build_arg_parser(self, parser):
    self.default_command.build_arg_parser(parser)
    subparsers = parser.add_subparsers(title='algorithm', dest='algorithm')
    for command in self.sub_commands:
        subparser = subparsers.add_parser(command.name, help=command.help)
        command.build_arg_parser(subparser)
def build_arg_parser(self, parser):
    self.default_command.build_arg_parser(parser)
    subparsers = parser.add_subparsers(title='algorithm', dest='algorithm')
    for command in self.sub_commands:
        subparser = subparsers.add_parser(command.name, help=command.help)
        command.build_arg_parser(subparser)