30 Commits

Author SHA1 Message Date
0b2193b3d4 use one exception class for all argument parsing errors 2013-05-02 10:43:54 -04:00
f55fb38e05 expand documentation a bit more 2013-05-02 10:38:45 -04:00
9b19afea20 expand documentation 2013-05-02 10:14:09 -04:00
543ce97e10 add rdoc task 2013-05-02 09:56:05 -04:00
55389866ee add second example usage to README 2013-01-23 21:56:26 -05:00
96277b62d0 update usage information / example configuration 2013-01-23 21:51:03 -05:00
6ae8e62f7b implement posix_order flag 2013-01-22 18:09:44 -05:00
dd4148a3d6 refactor more common processing into _gather() 2013-01-22 14:43:26 -05:00
e5d93df4ae add more test cases for short options 2013-01-22 14:13:19 -05:00
90d2a938d5 return option value for short option also 2013-01-22 14:03:27 -05:00
cf049aed2f process configured short options 2013-01-22 13:54:22 -05:00
40ecadd056 add _massage_options() to simplify parse() 2013-01-21 22:11:57 -05:00
ef860a8eee internally convert nargs to a range if it was a Fixnum for processing 2013-01-21 21:44:16 -05:00
21d64600dc add test for strings as keys for option configuration 2013-01-21 21:21:51 -05:00
bf60247b50 add test for an option passed in twice 2013-01-21 21:19:36 -05:00
91846e741e refactor using _gather() 2013-01-21 16:45:00 -05:00
1a5de331d9 test --opt=val syntax for nargs > 1 2013-01-21 16:15:17 -05:00
704ed971ac test --opt=val syntax 2013-01-21 16:13:55 -05:00
c7c21ca97e test exception on not enough arguments to option 2013-01-21 16:12:34 -05:00
fc90798459 test option with nargs = 2 2013-01-21 16:11:29 -05:00
4a693ba1ea return argument value when nargs = 1 2013-01-21 16:10:07 -05:00
056257b8f5 return boolean options set 2013-01-20 22:54:06 -05:00
56e644e16e raise exception on unknown option 2013-01-20 22:28:36 -05:00
b2b0d90c4d update README to remove direct subcommand support 2013-01-20 22:08:12 -05:00
1a1b18b62e reformat spec to test parse() results separately 2013-01-20 20:35:34 -05:00
67e9ec2c64 start working on parse() 2013-01-20 20:34:29 -05:00
1b192e422d colorize rspec 2013-01-20 20:34:14 -05:00
c00ca806a5 set up rspec 2013-01-20 20:12:17 -05:00
2ef0aa05e1 add description information 2013-01-20 19:50:17 -05:00
a8dfa3ed8a initial bundle gem contents 2013-01-20 19:28:49 -05:00