• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mpeterv / argparse / 95
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: 0.5.0
DEFAULT BRANCH: master
Ran 29 Oct 2015 06:02PM UTC
Jobs 4
Files 1
Run time 33s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
95

push

travis-ci

mpeterv
Redesign argument storing

* Use state objects instead of tons of locals in the main
  function.
* Use actions for storing arguments into result table.
  Actions are now called at the end of each invocation,
  with result table, target index, arguments and overwrite flag as
  arguments.
* Remove command actions.
* Improve error messages, refer to options by the last used alias
  instead of the main name.

TODO:

* Improve error messages further ("argument 'foo' is required"
  -> "missing argument 'foo'", etc.).
* Add actions for positional arguments.
* Add actions for commands (should be called with final results
  after parsing is over, in "innermost first" order).
* Allow referring to built-in actions by strings a-la Python
  (e.g. action = "store_false").
* Allow setting initial value to be stored at target index
  for each option (perhaps use default value for that).
* Add more tests, particularly for actions.

266 of 266 new or added lines in 1 file covered. (100.0%)

580 of 596 relevant lines covered (97.32%)

533.43 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
100.0
src/argparse.lua
Jobs
ID Job ID Ran Files Coverage
1 95.1 (LUA="lua 5.1") 29 Oct 2015 06:03PM UTC 0
97.32
Travis Job 95.1
2 95.2 (LUA="lua 5.2") 29 Oct 2015 06:02PM UTC 0
97.3
Travis Job 95.2
3 95.3 (LUA="lua 5.3") 29 Oct 2015 06:03PM UTC 0
97.3
Travis Job 95.3
4 95.4 (LUA="luajit 2.0") 29 Oct 2015 06:03PM UTC 0
96.57
Travis Job 95.4
Source Files on build 95
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #95
  • 247c8a9c on github
  • Next Build on dev (#96)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc