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

mpeterv / argparse / 95 / 1
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: 0.5.0
DEFAULT BRANCH: master
Ran 29 Oct 2015 06:03PM UTC
Files 1
Run time 0s
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

29 Oct 2015 06:02PM UTC coverage: 97.315%. First build
LUA="lua 5.1"

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.

580 of 596 relevant lines covered (97.32%)

129.73 hits per line

Source Files on job 95.1 (LUA="lua 5.1")
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 95
  • Travis Job 95.1
  • 247c8a9c on github
  • Next Job for LUA="lua 5.1" on dev (#96.1)
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