From 728d56aa05f834855b0c97e7d1b3664ef60c86de Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Fri, 4 Sep 2020 13:32:09 +0300 Subject: [PATCH] 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 --- scripts/unocommands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/unocommands.py b/scripts/unocommands.py index fe5ebd6b7d..0e09d231ee 100755 --- a/scripts/unocommands.py +++ b/scripts/unocommands.py @@ -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',"