From 67fa230b68501802ca529fade657d633c5bb5239 Mon Sep 17 00:00:00 2001 From: chen524 Date: Wed, 24 Jul 2024 04:23:13 +0000 Subject: [PATCH] =?UTF-8?q?update=20common/tool=5Fcmd.py.=201=E3=80=81?= =?UTF-8?q?=E5=8F=A5=E5=AD=90=E4=B8=AD=E5=A4=9A=E4=BA=86=E4=B8=80=E6=AC=A1?= =?UTF-8?q?=E7=A9=BA=E6=A0=BC=EF=BC=8C=E6=8F=90=E5=8D=87=E5=8F=AF=E8=AF=BB?= =?UTF-8?q?=E6=80=A7=202=E3=80=81=E5=8A=A0=E4=B8=8A=E5=B0=96=E6=8B=AC?= =?UTF-8?q?=E5=8F=B7=E4=BB=A5=E5=BC=BA=E8=B0=83=E2=80=9CCOMMAND=E2=80=9D?= =?UTF-8?q?=E6=98=AF=E4=B8=80=E4=B8=AA=E5=8F=AF=E6=9B=BF=E6=8D=A2=E7=9A=84?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chen524 --- common/tool_cmd.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/tool_cmd.py b/common/tool_cmd.py index 50b5481..b5d2add 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), -- Gitee