Skip to content

Commit

Permalink
Improve update-docs-versions.py
Browse files Browse the repository at this point in the history
Return exit code 1 on invalid parameters
  • Loading branch information
rmisev committed Nov 2, 2023
1 parent ccb9511 commit 3d98fb9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/update-docs-versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def key_of_dir_ver(dir_ver):
if len(sys.argv) == 3:
main(sys.argv[1], sys.argv[2])
else:
print("Usage: {} <directory of versions.txt file> <git ref>\n"
.format(os.path.basename(__file__)),
app_name = os.path.basename(os.path.basename(__file__))
print(f"Usage: {app_name} <directory of versions.txt file> <git ref>",
file=sys.stderr)
sys.exit(1)

0 comments on commit 3d98fb9

Please sign in to comment.