Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add basic test for Slop.parse | Lee Jarvis | 2020-01-28 | 1 | -0/+10 |
| | | | | See https://github.com/leejarvis/slop/pull/251 | ||||
* | Fix non-deterministic test | Lee Jarvis | 2017-05-01 | 1 | -1/+1 |
| | | | | There's a FooOption defined in options_test.rb | ||||
* | Handle bad constant names in Slop.option_defined? | Lee Jarvis | 2016-08-21 | 1 | -0/+17 |
| | | | | Closes #198 | ||||
* | Start of rewrite | Lee Jarvis | 2014-11-18 | 1 | -27/+0 |
| | |||||
* | Beginning of Slop 4.0 rewrite | Lee Jarvis | 2013-08-29 | 1 | -476/+11 |
| | |||||
* | Slop is no longer enumerable, you should use Slop#options | Lee Jarvis | 2013-08-13 | 1 | -8/+0 |
| | |||||
* | Slop::Error now has a slop attribute and a help method | Lee Jarvis | 2013-08-13 | 1 | -0/+10 |
| | |||||
* | Slop is now strict by default, and adds --help by default | Lee Jarvis | 2013-08-13 | 1 | -4/+4 |
| | | | | Also use 1.9 hash syntax | ||||
* | remove deprecated Slop.optspec | Lee Jarvis | 2013-08-13 | 1 | -18/+0 |
| | |||||
* | Only raise InvalidOptionError if in strict mode | Lee Jarvis | 2013-07-25 | 1 | -0/+5 |
| | |||||
* | Ensure unknown options are reported for multiple switches | Lee Jarvis | 2013-07-25 | 1 | -0/+6 |
| | | | | | | | Before this commit we just skipped an option if it wasn't found, we should instead raise an error. closes #122 | ||||
* | Ensure grouping multiple options still consumes trailing argument | Lee Jarvis | 2013-05-14 | 1 | -0/+6 |
| | | | | | | Parsing `-abc foo` should assign `foo` to the `c` option. closes #114 | ||||
* | Allow specifying long options starting with numbers | Peter Zotov | 2013-04-20 | 1 | -0/+1 |
| | | | | It is sometimes useful for a program to accept a version as an option (say, --19 or --1.9). | ||||
* | Add assert_raises(SystemExit) to prevent test suite from dying when testing ↵ | Peter Zotov | 2013-04-20 | 1 | -4/+10 |
| | | | | --help. | ||||
* | ensure default help exit test does not print to stdout | Lee Jarvis | 2013-03-22 | 1 | -3/+5 |
| | |||||
* | Adding a test for the behavior added by ce2b17e and 258a21d. | Autumn Perrault | 2013-03-10 | 1 | -0/+7 |
| | |||||
* | avoid 1.9+ syntax in tests | Lee Jarvis | 2013-03-05 | 1 | -1/+1 |
| | |||||
* | disable run callback when help option is used | Lee Jarvis | 2013-03-05 | 1 | -0/+15 |
| | | | | closes #106 | ||||
* | remove old command tests and comment out optspec test | Lee Jarvis | 2013-01-14 | 1 | -17/+17 |
| | |||||
* | use temp_stdout instead of temp_stderr for redirecting help output | Lee Jarvis | 2013-01-14 | 1 | -6/+6 |
| | |||||
* | ensure any new options replace old ones so no duplicates exist | Lee Jarvis | 2013-01-13 | 1 | -0/+9 |
| | | | | closes #100 | ||||
* | avoid 1.9 specific syntax for tests | Lee Jarvis | 2013-01-08 | 1 | -1/+1 |
| | |||||
* | added default usage string to help output | Lee Jarvis | 2013-01-08 | 1 | -2/+8 |
| | |||||
* | clean up unused variables in runner test | Lee Jarvis | 2013-01-06 | 1 | -5/+2 |
| | |||||
* | implement Slop#run method | Lee Jarvis | 2013-01-06 | 1 | -0/+14 |
| | |||||
* | simplify tests | Lee Jarvis | 2012-10-22 | 1 | -6/+1 |
| | |||||
* | Merge branch 'master' of github.com:injekt/slop | Lee Jarvis | 2012-10-22 | 1 | -0/+18 |
|\ | | | | | | | | | Conflicts: test/slop_test.rb | ||||
| * | add test-suite for arity checker of Slop#respond_to? | Kenichi Kamiya | 2012-10-20 | 1 | -0/+18 |
| | | |||||
* | | add test-suite for specify visibility of Slop#method_missing | Kenichi Kamiya | 2012-10-20 | 1 | -0/+4 |
|/ | |||||
* | Add test suite for to specify the interface of constructors | Kenichi Kamiya | 2012-10-15 | 1 | -0/+41 |
| | |||||
* | Revert "fix block-scope of "Slop.new" and other constructors(e.g: ↵ | Lee Jarvis | 2012-10-15 | 1 | -25/+0 |
| | | | | | | | | | Slop.parse), these are influenced by arity number. this problem is same as #81" This reverts commit 89215e48ea4ed63319634118286ad9a0dc6a747b. Conflicts: test/slop_test.rb | ||||
* | ensure 'no-foo' options are not inverted when parsing '--no-foo' | Lee Jarvis | 2012-10-11 | 1 | -1/+11 |
| | | | | closes #86 | ||||
* | add test-case for fix Slop#to_s, that brake config-banner | Kenichi Kamiya | 2012-10-11 | 1 | -0/+10 |
| | |||||
* | Merge branch 'master' of github.com:injekt/slop | Lee Jarvis | 2012-09-19 | 1 | -0/+26 |
|\ | |||||
| * | fix block-scope of "Slop.new" and other constructors(e.g: Slop.parse), these ↵ | Kenichi Kamiya | 2012-09-17 | 1 | -0/+26 |
| | | | | | | | | are influenced by arity number. this problem is same as #81 | ||||
* | | support opts.foo_bar? check falling back on 'foo-bar' option | Lee Jarvis | 2012-09-19 | 1 | -0/+8 |
|/ | | | | | | | | | | Current to check an option with an - character you would need either to use opts.present?('foo-bar') or opts['foo-bar']. THIS IS NOT ENOUGH :metal: So let's fall back to supporting opts.foo_bar? which (unless foo_bar exist, will check for 'foo-bar' next. COOL HUH?) | ||||
* | avoid using #present? when checking for an options present in autocreate | Lee Jarvis | 2012-08-24 | 1 | -0/+7 |
| | | | | | | | | | the present? method checks that an option exists AND has been used in the argument list. autocreate works should just check for an options existence not if the option has been used or not, if the option already exists, autocreate should skip it. Before this commit, that was not the case closes #77 again | ||||
* | ensure autocreate arguments are not created as options | Lee Jarvis | 2012-08-21 | 1 | -0/+1 |
| | | | | closes #77 | ||||
* | ensure options are not swallowed when using options with arguments included ↵ | Lee Jarvis | 2012-08-14 | 1 | -0/+5 |
| | | | | | | in value closes #74 | ||||
* | Stop multiple switches from trashing arguments | Conrad Irwin | 2012-05-31 | 1 | -0/+6 |
| | |||||
* | Merge branch 'master' into to_hash_boolean_options | Lee Jarvis | 2012-05-15 | 1 | -0/+7 |
|\ | |||||
| * | an explicit test for underscore support | chuck son | 2012-05-14 | 1 | -0/+7 |
| | | |||||
* | | avoid using instance_variable_defined? for checking value | Lee Jarvis | 2012-04-30 | 1 | -1/+1 |
| | | | | | | | | ref #59 | ||||
* | | added failing assertion for to_hash boolean options | Lee Jarvis | 2012-04-30 | 1 | -3/+3 |
| | | |||||
* | | Merge branch 'to_hash_take2' of https://github.com/no6v/slop into ↵ | Lee Jarvis | 2012-04-30 | 1 | -4/+4 |
|\ \ | |/ |/| | | | no6v-to_hash_take2 | ||||
| * | fix test for to_hash and get/[] | Nobuhiro IMAI | 2012-02-29 | 1 | -4/+4 |
| | | |||||
* | | ensure separator before any options is still being processed | Lee Jarvis | 2012-04-24 | 1 | -0/+6 |
| | | | | | | | | closes #62 | ||||
* | | ensure separators arent replacing existing separators | Lee Jarvis | 2012-04-23 | 1 | -1/+2 |
|/ | | | | closes #61 | ||||
* | ensure opt=arg syntax does not consume following argument | Lee Jarvis | 2012-01-31 | 1 | -0/+7 |
| | | | | fixes #55 | ||||
* | fix option terminator parsing | Lee Jarvis | 2012-01-30 | 1 | -0/+7 |
| |