20 Commits

Author SHA1 Message Date
1b49c06a85 require spec_helper from .rspec 2014-06-25 15:30:11 -04:00
b79acd049f allow nil and :boolean to be option configuration values 2014-06-25 15:22:39 -04:00
a78ee7275e implement :boolean option flag 2014-06-25 15:05:19 -04:00
2099aaa6e0 update to RSpec 3.0 2014-06-25 14:11:39 -04:00
6ae8e62f7b implement posix_order flag 2013-01-22 18:09:44 -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
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
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
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
c00ca806a5 set up rspec 2013-01-20 20:12:17 -05:00