[latex3-commits] [git/l3build] master: Update help() so that options do not need a short name (04595a4)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Jan 3 15:15:37 CET 2018


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/04595a425e16c5798edd3d89533e2259e4e4f275

>---------------------------------------------------------------

commit 04595a425e16c5798edd3d89533e2259e4e4f275
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Jan 3 14:15:37 2018 +0000

    Update help() so that options do not need a short name


>---------------------------------------------------------------

04595a425e16c5798edd3d89533e2259e4e4f275
 l3build.lua |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/l3build.lua b/l3build.lua
index b8803a4..5979b68 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -1872,9 +1872,11 @@ function help()
     local opt = option_list[k]
     local filler = rep(" ", longest - len(k) + 1)
     if opt["desc"] then -- Skip --help as it has no desc
-      print(
-        "   --" .. k .. "|-" .. opt["short"] .. filler .. opt["desc"]
-      )
+      if opt["short"] then
+        print("   --" .. k .. "|-" .. opt["short"] .. filler .. opt["desc"])
+      else
+        print("   --" .. k .. "   " .. filler .. opt["desc"])
+      end
     end
   end
   print("")





More information about the latex3-commits mailing list