[latex3-commits] [latex3/l3build] bbd890: Use options[] table for examining options

GitHub noreply at github.com
Wed Jul 5 08:14:43 CEST 2017


  Branch: refs/heads/master
  Home:   https://github.com/latex3/l3build
  Commit: bbd8906c3798617cab40cb20de14892a3ed3811b
      https://github.com/latex3/l3build/commit/bbd8906c3798617cab40cb20de14892a3ed3811b
  Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
  Date:   2017-07-05 (Wed, 05 Jul 2017)

  Changed paths:
    M l3build.lua

  Log Message:
  -----------
  Use options[] table for examining options

This saves a few lines/variables but more importantly will work
more cleanly with upcoming changes to generalise the option list.


  Commit: 35d42311482fd32c3a90aa8060ea17e2285cbedb
      https://github.com/latex3/l3build/commit/35d42311482fd32c3a90aa8060ea17e2285cbedb
  Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
  Date:   2017-07-05 (Wed, 05 Jul 2017)

  Changed paths:
    M l3build.lua

  Log Message:
  -----------
  Use a single table for all options

This gives us one point of contact for adding/modifying options.

We could perhaps make argparse() available more widely based on this
model, with the list and perhaps command line data passed as arguments.

At present only 1-1 mappings are supported but that is easy to
change: simply requires one or two additional keys.


  Commit: c4bd00cc175e9764cb982eec7f4e0f51c3ae7981
      https://github.com/latex3/l3build/commit/c4bd00cc175e9764cb982eec7f4e0f51c3ae7981
  Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
  Date:   2017-07-05 (Wed, 05 Jul 2017)

  Changed paths:
    M l3build.lua

  Log Message:
  -----------
  Auto-generate options in help()

This uses the new option_list[] table so is a bit more
code but avoids having data in multiple places.

Probably a similar change should be made for the targets, both
in terms of help() and in the main() function.


  Commit: 0d0ec28f0e5bec59936f76bb296a69d0114be4ef
      https://github.com/latex3/l3build/commit/0d0ec28f0e5bec59936f76bb296a69d0114be4ef
  Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
  Date:   2017-07-05 (Wed, 05 Jul 2017)

  Changed paths:
    M l3build.dtx
    M l3build.lua

  Log Message:
  -----------
  Add an optional arg to call() to pass additional settings (fixes #22)


Compare: https://github.com/latex3/l3build/compare/e288185e2951...0d0ec28f0e5b


More information about the latex3-commits mailing list