Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Use each_with_index for looping over arguments | Naoki Mizuno | 2015-09-08 | 1 | -13/+3 | |
| | ||||||
* | Fix arguments removed with option arguments | Naoki Mizuno | 2015-09-08 | 1 | -1/+16 | |
| | | | | See #181. | |||||
* | #163 only raise MissingArgument if not default_value | Ben Brady | 2015-06-30 | 1 | -3/+8 | |
| | ||||||
* | Simplify checking for grouped short flags | Lee Jarvis | 2015-06-20 | 1 | -1/+1 | |
| | ||||||
* | Bump version v4.2.0v4.2.0 | Lee Jarvis | 2015-06-18 | 1 | -1/+1 | |
| | ||||||
* | Better handling of option names with multiple words | Tim Rogers | 2015-06-13 | 2 | -2/+2 | |
| | ||||||
* | Support --no- prefix for inverting boolean options | Lee Jarvis | 2015-05-21 | 2 | -2/+21 | |
| | | | | closes #168 | |||||
* | Added support for Regexp | Laurent Arnoud | 2015-05-17 | 1 | -0/+7 | |
| | | | | | Used to work on 3.6 See https://github.com/leejarvis/slop/commit/e2775e27d866ba85f6b6bf50536135ee4e93c93e | |||||
* | Bump version 4.1.0v4.1.0 | Lee Jarvis | 2015-04-18 | 1 | -2/+1 | |
| | ||||||
* | Remove poitless semicolon in error.rb | Sigurd Svela | 2015-04-09 | 1 | -1/+1 | |
| | ||||||
* | Remove semi-colon and extraneous whitespace in error | sigurdsvela | 2015-04-09 | 1 | -1/+1 | |
| | ||||||
* | Rewrite UnknownOption.getUnknownOption() to flag | sigurdsvela | 2015-04-07 | 1 | -6/+4 | |
| | | | | | | Rewrite the UnknownOption.getUnknownOption() to use attr_reader :flags. And rename the initialize parameter unknownOption to flag. | |||||
* | Rewrite MissingOption.getFlags() to flags | sigurdsvela | 2015-04-07 | 1 | -8/+6 | |
| | | | | | | Removes the MissingOption.getFlags() function and replaces it with attr_reader :flags | |||||
* | Implement getFlags in MissingArgument | sigurdsvela | 2015-04-06 | 2 | -1/+11 | |
| | | | | | | A function in MissingArgument that returns and array of all the flags that matches the option missing an argument | |||||
* | Use parenthesis with new to conform to code style | sigurdsvela | 2015-04-06 | 1 | -1/+1 | |
| | ||||||
* | Remove semi-colons to conform to the code style | sigurdsvela | 2015-04-06 | 1 | -3/+3 | |
| | ||||||
* | Implement getUnknownMessage in UnknownOption | sigurdsvela | 2015-04-06 | 2 | -2/+11 | |
| | | | | | | | This allows to retrive the unknown option in question when catching the error. This can be useful to, for example, taylor a spesific output for common errors amongst users. | |||||
* | Add explicit value setter to Result class | Lee Jarvis | 2015-02-04 | 1 | -0/+11 | |
| | | | | closes #162 | |||||
* | Remove "--" from the unprocessed arguments | David RodrÃguez | 2015-01-11 | 1 | -1/+6 | |
| | | | | | The double dash is a valid (special) option for Slop, so like the rest of the options successfully processed, should be removed. | |||||
* | Support `tail: true` config option | Lee Jarvis | 2015-01-02 | 2 | -2/+14 | |
| | ||||||
* | Reset parser every time parse is called | Lee Jarvis | 2014-12-30 | 1 | -0/+2 | |
| | ||||||
* | Support a limit config to ArrayOption | Lee Jarvis | 2014-12-30 | 1 | -1/+5 | |
| | ||||||
* | Add some basic type docs | Lee Jarvis | 2014-12-30 | 1 | -1/+10 | |
| | ||||||
* | add Float support | Rick Hull | 2014-12-29 | 1 | -0/+7 | |
| | | | | | | - in lib/ - in test/ - in README | |||||
* | Provide and option to disable banners | Lee Jarvis | 2014-12-19 | 1 | -1/+2 | |
| | ||||||
* | Add result/parser `arguments` method | Lee Jarvis | 2014-12-19 | 2 | -2/+32 | |
| | ||||||
* | Remind myself why I did this | Lee Jarvis | 2014-12-17 | 1 | -1/+2 | |
| | ||||||
* | Comments and clean up | Lee Jarvis | 2014-12-17 | 3 | -4/+45 | |
| | ||||||
* | Add readme section for printing help | Lee Jarvis | 2014-12-17 | 1 | -2/+2 | |
| | ||||||
* | Add NotImplementedError and docs | Lee Jarvis | 2014-12-17 | 1 | -1/+14 | |
| | ||||||
* | Document Parser | Lee Jarvis | 2014-12-17 | 1 | -2/+13 | |
| | ||||||
* | Document Option | Lee Jarvis | 2014-12-17 | 1 | -0/+11 | |
| | ||||||
* | Document slop class methods | Lee Jarvis | 2014-12-17 | 1 | -0/+30 | |
| | ||||||
* | Add VERSION, stop managing it separately in gemspec | Lee Jarvis | 2014-12-17 | 1 | -0/+2 | |
| | ||||||
* | Add NullOption and default to using it | Lee Jarvis | 2014-12-17 | 4 | -4/+37 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | A NullOption is one whos return value we don't care about. For example, you might just want a `--version` option which simply prints the version and exits. In this case, having a `true` value in `to_hash` is really just noise. We probably don't care about it, using NullOption discards it. I think using this for Options#on makes sense because this is logical: opts.on '--version' do puts VERSION exit end Rather than: opts.add '--version' do puts VERSION exit end And defaulting to a StringOption. This also means you have to be explicit about adding such an option, which is a good thing. | |||||
* | Fix doc typo | Lee Jarvis | 2014-11-20 | 1 | -2/+2 | |
| | ||||||
* | Alias to_h to_hash | Lee Jarvis | 2014-11-20 | 1 | -0/+1 | |
| | ||||||
* | Simplify Parser used_options | Lee Jarvis | 2014-11-20 | 1 | -3/+5 | |
| | ||||||
* | Default array values to [] | Lee Jarvis | 2014-11-19 | 1 | -0/+4 | |
| | ||||||
* | Update readme and add type aliases | Lee Jarvis | 2014-11-19 | 1 | -0/+2 | |
| | ||||||
* | Ensure booleans default to false | Lee Jarvis | 2014-11-19 | 2 | -1/+9 | |
| | ||||||
* | Handle UnknownOption exceptions | Lee Jarvis | 2014-11-19 | 4 | -9/+15 | |
| | ||||||
* | Add MissingArgument error processing, and suppressing | Lee Jarvis | 2014-11-19 | 6 | -3/+43 | |
| | ||||||
* | Handle short grouped flags | Lee Jarvis | 2014-11-19 | 1 | -6/+15 | |
| | ||||||
* | Support flag=arg | Lee Jarvis | 2014-11-19 | 1 | -5/+16 | |
| | ||||||
* | Yield option arguments to option blocks | Lee Jarvis | 2014-11-19 | 2 | -4/+6 | |
| | ||||||
* | Allow options to be hidden from help string | Lee Jarvis | 2014-11-19 | 2 | -2/+10 | |
| | ||||||
* | Add Slop.parse() | Lee Jarvis | 2014-11-19 | 2 | -1/+8 | |
| | ||||||
* | Support method_missing checks for used options | Lee Jarvis | 2014-11-19 | 1 | -0/+13 | |
| | ||||||
* | Add custom "finish" method for options | Lee Jarvis | 2014-11-19 | 3 | -2/+19 | |
| |