提交 d8180965 编写于 作者: L liangyongxiong

disable argparse allow_abbrev

上级 73ce59d5
......@@ -98,7 +98,8 @@ def main():
parser = argparse.ArgumentParser(
prog='mindinsight',
description='MindInsight CLI entry point (version: {})'.format(mindinsight.__version__))
description='MindInsight CLI entry point (version: {})'.format(mindinsight.__version__),
allow_abbrev=False)
parser.add_argument(
'--version',
......@@ -125,7 +126,7 @@ def main():
continue
command = command_cls()
command_parser = subparsers.add_parser(command.name, help=command.description)
command_parser = subparsers.add_parser(command.name, help=command.description, allow_abbrev=False)
command.add_arguments(command_parser)
commands[command.name] = command
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册