[Shadow] Rename CliParser to LunrCliParser, add unit tests and small cleanup of the class

Review Request #73 — Created March 2, 2013 and submitted

pprkut
Lunr
pprkut:shadow
lunr
Rename the CliParser class to LunrCliParser to prepare for a future implementation of another different cli parser (like getopt for example).
Add unit tests for the class. They are hardly complete but cover the most important parts of the class to ensure we can properly refactor it later.
Implement a few fixes for issues discovered while writing the unit tests as well as some minor code cleanup to reduce the complexity of the class.

This depends on http://reviews.lunr.nl/r/69/
Unit tests
Loading...