diff --git a/common/tool_cmd.py b/common/tool_cmd.py index 50b5481b763a0cfa0ab44313ec942dce5a5ea17a..b5d2addbfeb3bd498bfa7d9a6a003465d0f3a36d 100644 --- a/common/tool_cmd.py +++ b/common/tool_cmd.py @@ -25,7 +25,7 @@ class ToolCmd: parent_parser.add_argument('--inst_path', type = str, default = '.', help = argparse.SUPPRESS) parent_parser.add_argument('-o','--out_path', type = str, default = '.', - help = 'include log and report, default is current directory') + help = 'include log and report, default is current directory') #共享可选参数version vparent_parser = argparse.ArgumentParser(add_help=False) vparent_parser.add_argument('-v','--version' , action = 'version', version = self.__get_version(), @@ -33,7 +33,7 @@ class ToolCmd: #共享可选参数cust_col 收集脚本 cparent_parser = argparse.ArgumentParser(add_help=False) - cparent_parser.add_argument('--add ', help = 'Extra collection data') + cparent_parser.add_argument('--add', help = 'Extra collection data') #extuner命令 parser = argparse.ArgumentParser( @@ -41,12 +41,12 @@ class ToolCmd: formatter_class=argparse.RawDescriptionHelpFormatter, prog='extuner', parents=[vparent_parser], - usage=''' \n extuner COMMAND [options] ''', + usage=''' \n extuner [options] ''', epilog='''examples:\n extuner collection --perf --pid -1''') subparsers = parser.add_subparsers(title = 'commands',prog='extuner',metavar=' ') #子命令extuner collection - desc_c = 'collect the system data ,such as CPU/MEM/NET/IO' + desc_c = 'collect the system data,such as CPU/MEM/NET/IO' parser_col = subparsers.add_parser('collection', parents=[parent_parser], description='''description:\n {}'''.format(desc_c),