Commit Graph
14 Commits
Author SHA1 Message Date
mpeterv 85809c8ad4 Reorder properties
Move more common properties to the front of property lists,
so that they can be passed as constructor arguments.
E.g.

parser:option "-p" "--port"
   :description "Port number."
   :default "8080"
   :convert(tonumber)

can now be expressed as

parser:option("-p --port", "Port number.", "8080", tonumber)
2015-06-09 22:27:32 +03:00
mpeterv 44fd3b3cb8 Remove 'aliases' property
Allow setting several names using 'name' property instead, e.g.
':name "-f --foo"' instead of ':aliases {"-f", "--foo"}'.

This change breaks documented interface of 0.3.x.
2015-06-09 22:08:16 +03:00
mpeterv 4320f40844 Update travis config
Bump setup scripts, use luacheck.
2015-06-09 21:57:02 +03:00
mpeterv ff9abac990 Allow using multiple constructor arguments for configuring elements
Disable undocumented ability to specify aliases as arguments
for constructors, e.g. parser:option("-f", "--foo"), and instead
order properties and pass constructor arguments to them.
E.g. parser:argument("foo", "A foo that bars") sets argument
name to foo and description to "A foo that bars".

TODO: remove "aliases" property, instead allow setting several
names in one string by separating them using space.
TODO: reorder properties so that most useful ones could be used
as constructor arguments.
2015-06-09 21:56:36 +03:00
mpeterv 476ad19de8 Avoid printing space at the end of line 2015-03-13 15:40:24 +03:00
mpeterv 01cc387863 Spec cleanups 2015-03-13 15:19:33 +03:00
mpeterv 0da90dc597 Print \n instead of \r\n 2015-03-13 15:12:06 +03:00
mpeterv 9da3d150b1 Add travis testing for Lua 5.3 2015-03-13 14:44:13 +03:00
mpeterv e14efa01c7 0.3.2 release 2015-01-15 16:34:11 +03:00
mpeterv dcb17aa8b0 Remove bundled 30log 2015-01-15 16:25:00 +03:00
mpeterv 150fa8e75c Fixed some luacheck warnings 2015-01-15 15:44:41 +03:00
mpeterv 002db5a133 0.3.1 release 2014-11-06 16:31:17 +03:00
mpeterv 5702fd104e Updated README.md 2014-11-06 16:25:26 +03:00
mpeterv 1e940eac8b Bundle 30log
Be compatible with old Luarocks versions, including Luarocks installed
via apt-get and Lua for Windows.
2014-11-06 16:22:49 +03:00