Skip to content

Commit 14e514e

Browse files
committed
Return a nicer message when the expected when args are missing
1 parent 692c573 commit 14e514e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

about_code_tool/about.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,6 +1083,12 @@ def generate_attribution(self, template_path='templates/default.html',
10831083
def main(parser, options, args):
10841084
overwrite = options.overwrite
10851085
verbosity = options.verbosity
1086+
1087+
if not len(args) == 2:
1088+
print('Input and Output paths are required.\n')
1089+
parser.print_help()
1090+
sys.exit(errno.EEXIST)
1091+
10861092
input_path = args[0]
10871093
output_path = args[1]
10881094

0 commit comments

Comments
 (0)