Don't use just the basename in the usage help message

That is counter-productive. Use the command name as used by the user
to run the script.

Change-Id: I11b082375db8d8184543cead912cbc556f3695e2
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102041
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
This commit is contained in:
Tor Lillqvist
2020-09-04 13:32:09 +03:00
parent 928d675270
commit 728d56aa05

View File

@ -36,7 +36,7 @@ Update the translations of unocommands.js before releasing:
{program} --translate /path/to/online /path/to/translations
"""
print(message.format(program = os.path.basename(sys.argv[0])))
print(message.format(program = sys.argv[0]))
exit(1)
# Extract uno commands name from lines like " 'Command1', 'Command2',"