[latex3-commits] [git/LaTeX3-latex3-l3build] master: Better return of script name in help (12160a6)
Joseph Wright
joseph.wright at morningstar2.co.uk
Fri Mar 9 09:18:06 CET 2018
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/12160a61a7bba30669f93ec715ce1fdfb7bf36e0
>---------------------------------------------------------------
commit 12160a61a7bba30669f93ec715ce1fdfb7bf36e0
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Fri Mar 9 08:18:06 2018 +0000
Better return of script name in help
>---------------------------------------------------------------
12160a61a7bba30669f93ec715ce1fdfb7bf36e0
l3build-help.lua | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/l3build-help.lua b/l3build-help.lua
index 770022f..c7050c4 100644
--- a/l3build-help.lua
+++ b/l3build-help.lua
@@ -31,7 +31,11 @@ function version()
end
function help()
- print("usage: " .. arg[0] .. " <command> [<options>] [<names>]")
+ local scriptname = "l3build"
+ if not string.match(arg[0], "l3build(%.lua)$") then
+ scriptname = arg[0]
+ end
+ print("usage: " .. scriptname .. " <command> [<options>] [<names>]")
print("")
print("The most commonly used l3build commands are:")
if testfiledir ~= "" then
More information about the latex3-commits
mailing list