@@ -61,21 +61,19 @@ def __search(self):
6161 usage = "cocnt search input_path [-h] [-v] [-g] "
6262 "[-o OUTPUT_PATH] [--suffix SUFFIX] [--comment COMMENT] [--ignore IGNORE]" )
6363 parser .add_argument ('input_path' , type = split_args ,
64- help = "counting the code lines according the given path(s)" )
64+ help = "counting the code lines according to the given path(s)" )
6565 parser .add_argument ('-v' , '--verbose' , dest = "verbose" , action = 'store_true' ,
66- help = "show verbose infomation " )
66+ help = "show verbose information " )
6767 parser .add_argument ('-g' , '--graph' , dest = 'graph' , action = 'store_true' ,
6868 help = "choose to whether to visualize the result" )
6969 parser .add_argument ('-o' , '--output' , dest = 'output_path' ,
70- help = "specify a output path if you want to store the result" )
70+ help = "specify an output path if you want to store the result" )
7171 parser .add_argument ('--suffix' , dest = 'suffix' , type = split_args ,
72- help = "what code files do you want to count, this parameter is disposable " )
72+ help = "what code files do you want to count" )
7373 parser .add_argument ('--comment' , dest = 'comment' , type = split_args ,
74- help = "the comment symbol, which can be judged whether the current line is a comment, "
75- "this parameter is disposable" )
74+ help = "the comment symbol, which can be judged whether the current line is a comment" )
7675 parser .add_argument ('--ignore' , dest = 'ignore' , type = split_args ,
77- help = "ignore some directories or files that you don't want to count, "
78- "this parameter is disposable" )
76+ help = "ignore some directories or files that you don't want to count" )
7977 return parser .parse_args (sys .argv [2 :])
8078
8179 def __config (self ):
@@ -87,24 +85,31 @@ def __config(self):
8785 "[--comment-add COMMENT_ADD] [--ignore-reset IGNORE_RESET] "
8886 "[--ignore-add IGNORE_ADD] [--restore] " )
8987 parser .add_argument ('--list' , dest = 'show_list' , action = 'store_true' ,
90- help = "list all variables set in config file, along with their values" )
88+ help = "list all variables set in the config file, along with their values" )
9189 parser .add_argument ('--suffix-reset' , dest = 'suffix_reset' , type = split_args ,
92- help = "override 'suffix' in config and count codes according to this value" )
90+ help = "reset the 'suffix' in the config and count code lines according to this value" )
9391 parser .add_argument ('--suffix-add' , dest = 'suffix_add' , type = split_args ,
94- help = "append new value for 'suffix' in config and count codes according to this value" )
92+ help = "append new value for the 'suffix' in the config "
93+ "and count code lines according to this value" )
94+ parser .add_argument ('--suffix-del' , dest = 'suffix_del' , type = split_args ,
95+ help = "delete some values of the 'suffix' in the config" )
9596
9697 parser .add_argument ('--comment-reset' , dest = 'comment_reset' , type = split_args ,
97- help = "override 'comment' in config and count comment lines according to this value" )
98+ help = "reset the 'comment' in the config and count comment lines according to this value" )
9899 parser .add_argument ('--comment-add' , dest = 'comment_add' , type = split_args ,
99- help = "append new value for 'comment' in config "
100+ help = "append new value for the 'comment' in the config "
100101 "and count comment lines according to this value" )
102+ parser .add_argument ('--comment-del' , dest = 'comment_del' , type = split_args ,
103+ help = "delete some values of the 'comment' in the config" )
101104
102105 parser .add_argument ('--ignore-reset' , dest = 'ignore_reset' , type = split_args ,
103- help = "override 'ignore' in config "
104- "and ignore some files or directory according to this value" )
106+ help = "reset the 'ignore' in the config "
107+ "and ignore some files or directories according to this value" )
105108 parser .add_argument ('--ignore-add' , dest = 'ignore_add' , type = split_args ,
106- help = "append new value for 'ignore' in config "
107- "and ignore some files or directory according to this value" )
109+ help = "append new value for the 'ignore' in the config "
110+ "and ignore some files or directories according to this value" )
111+ parser .add_argument ('--ignore-del' , dest = 'ignore_del' , type = split_args ,
112+ help = "delete some values of the 'ignore' in the config" )
108113
109114 parser .add_argument ('--restore' , dest = 'restore' , action = 'store_true' ,
110115 help = "restore default config" )
0 commit comments