[latex3-commits] [git/LaTeX3-latex3-l3build] master: Improvements to help() and version() (see #110) (b31389a)
Joseph Wright
joseph.wright at morningstar2.co.uk
Sun Feb 16 23:21:17 CET 2020
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/b31389a664d9aa2cb892e4ae969ad26da9bca3f6
>---------------------------------------------------------------
commit b31389a664d9aa2cb892e4ae969ad26da9bca3f6
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Sun Feb 16 22:21:17 2020 +0000
Improvements to help() and version() (see #110)
>---------------------------------------------------------------
b31389a664d9aa2cb892e4ae969ad26da9bca3f6
l3build-arguments.lua | 6 ++++++
l3build-help.lua | 13 +++++++++----
2 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/l3build-arguments.lua b/l3build-arguments.lua
index cbf68c6..53d02d4 100644
--- a/l3build-arguments.lua
+++ b/l3build-arguments.lua
@@ -108,6 +108,7 @@ option_list =
},
help =
{
+ desc = "Print this message and exit",
short = "h",
type = "boolean"
},
@@ -147,6 +148,11 @@ option_list =
{
desc = "Location of user texmf tree",
type = "string"
+ },
+ version =
+ {
+ desc = "Print this message and exit",
+ type = "boolean"
}
}
diff --git a/l3build-help.lua b/l3build-help.lua
index 145378d..0a06332 100644
--- a/l3build-help.lua
+++ b/l3build-help.lua
@@ -31,7 +31,8 @@ function version()
print(
"\n" ..
"l3build: A testing and building system for LaTeX\n\n" ..
- "Release " .. release_date
+ "Release " .. release_date .. "\n"
+ "Copy (C) 2014-2020 The LaTeX3 Project"
)
end
@@ -56,9 +57,9 @@ function help()
if not (match(arg[0], "l3build%.lua$") or match(arg[0],"l3build$")) then
scriptname = arg[0]
end
- print("usage: " .. scriptname .. " <command> [<options>] [<names>]")
+ print("usage: " .. scriptname .. " <target> [<options>] [<names>]")
print("")
- print("Valid commands are:")
+ print("Valid targets are:")
local longest,t = setup_list(target_list)
for _,k in ipairs(t) do
local target = target_list[k]
@@ -82,5 +83,9 @@ function help()
end
end
print("")
- print("See l3build.pdf for further details.")
+ print("Full manual available via 'texdoc l3build'.")
+ print("")
+ print("Repository : https://github.com/latex3/l3build")
+ print("Bug tracker : https://github.com/latex3/l3build/issues")
+ print("Copyright (C) 2014-2020 The LaTeX3 Project")
end
More information about the latex3-commits
mailing list.