def create_argparser():
parser = argparse.ArgumentParser(
parents=[base_parser] + tools.parsers(),
add_help=False,
formatter_class=argparse.RawDescriptionHelpFormatter,
)
group = parser.add_argument_group(
'supported compiler/build-system commands')
supported_commands = ', '.join(capture.supported_commands())
group.add_argument(
CMD_MARKER,
metavar='<cmd>',
dest='nullarg',
default=None,
help=('Command to run the compiler/build-system. '
'Supported build commands: ' + supported_commands),
)
return parser
评论列表
文章目录