Skip to content

Commit 96fdd40

Browse files
committed
Update wording of the usage syntax
1 parent 7b4c47b commit 96fdd40

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

about_code_tool/genattrib.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ def check_about_file_existence_and_format(input_list):
107107
USAGE_SYNTAX = """\
108108
Input can be a file or directory.
109109
Output of rendered template must be a file (e.g. .html).
110+
111+
Optional:
110112
Component List must be a .csv file which has at least an "about_file" column.
111113
"""
112114

@@ -171,8 +173,8 @@ def main(parser, options, args):
171173
parser.print_help()
172174
sys.exit(errno.EINVAL)
173175

174-
if not len(args) >= 2 and len(args) < 4:
175-
print('Path for input and output are required.\n')
176+
if not len(args) >= 2 or not len(args) < 4:
177+
print('The number of arguments is incorrect.\n')
176178
parser.print_help()
177179
sys.exit(errno.EEXIST)
178180

@@ -309,7 +311,7 @@ def format_option(self, option):
309311
return "".join(result)
310312

311313
parser = optparse.OptionParser(
312-
usage='%prog [options] input_path output_path component_list',
314+
usage='%prog [options] input_path output_path [component_list]',
313315
description=USAGE_SYNTAX,
314316
add_help_option=False,
315317
formatter=MyFormatter(),

0 commit comments

Comments
 (0)