summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Use each_with_index for looping over argumentsNaoki Mizuno2015-09-081-13/+3
|
* Fix arguments removed with option argumentsNaoki Mizuno2015-09-081-1/+16
| | | | See #181.
* #163 only raise MissingArgument if not default_valueBen Brady2015-06-301-3/+8
|
* Simplify checking for grouped short flagsLee Jarvis2015-06-201-1/+1
|
* Bump version v4.2.0v4.2.0Lee Jarvis2015-06-181-1/+1
|
* Better handling of option names with multiple wordsTim Rogers2015-06-132-2/+2
|
* Support --no- prefix for inverting boolean optionsLee Jarvis2015-05-212-2/+21
| | | | closes #168
* Added support for RegexpLaurent Arnoud2015-05-171-0/+7
| | | | | Used to work on 3.6 See https://github.com/leejarvis/slop/commit/e2775e27d866ba85f6b6bf50536135ee4e93c93e
* Bump version 4.1.0v4.1.0Lee Jarvis2015-04-181-2/+1
|
* Remove poitless semicolon in error.rbSigurd Svela2015-04-091-1/+1
|
* Remove semi-colon and extraneous whitespace in errorsigurdsvela2015-04-091-1/+1
|
* Rewrite UnknownOption.getUnknownOption() to flagsigurdsvela2015-04-071-6/+4
| | | | | | Rewrite the UnknownOption.getUnknownOption() to use attr_reader :flags. And rename the initialize parameter unknownOption to flag.
* Rewrite MissingOption.getFlags() to flagssigurdsvela2015-04-071-8/+6
| | | | | | Removes the MissingOption.getFlags() function and replaces it with attr_reader :flags
* Implement getFlags in MissingArgumentsigurdsvela2015-04-062-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 stylesigurdsvela2015-04-061-1/+1
|
* Remove semi-colons to conform to the code stylesigurdsvela2015-04-061-3/+3
|
* Implement getUnknownMessage in UnknownOptionsigurdsvela2015-04-062-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 classLee Jarvis2015-02-041-0/+11
| | | | closes #162
* Remove "--" from the unprocessed argumentsDavid Rodríguez2015-01-111-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 optionLee Jarvis2015-01-022-2/+14
|
* Reset parser every time parse is calledLee Jarvis2014-12-301-0/+2
|
* Support a limit config to ArrayOptionLee Jarvis2014-12-301-1/+5
|
* Add some basic type docsLee Jarvis2014-12-301-1/+10
|
* add Float supportRick Hull2014-12-291-0/+7
| | | | | | - in lib/ - in test/ - in README
* Provide and option to disable bannersLee Jarvis2014-12-191-1/+2
|
* Add result/parser `arguments` methodLee Jarvis2014-12-192-2/+32
|
* Remind myself why I did thisLee Jarvis2014-12-171-1/+2
|
* Comments and clean upLee Jarvis2014-12-173-4/+45
|
* Add readme section for printing helpLee Jarvis2014-12-171-2/+2
|
* Add NotImplementedError and docsLee Jarvis2014-12-171-1/+14
|
* Document ParserLee Jarvis2014-12-171-2/+13
|
* Document OptionLee Jarvis2014-12-171-0/+11
|
* Document slop class methodsLee Jarvis2014-12-171-0/+30
|
* Add VERSION, stop managing it separately in gemspecLee Jarvis2014-12-171-0/+2
|
* Add NullOption and default to using itLee Jarvis2014-12-174-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 typoLee Jarvis2014-11-201-2/+2
|
* Alias to_h to_hashLee Jarvis2014-11-201-0/+1
|
* Simplify Parser used_optionsLee Jarvis2014-11-201-3/+5
|
* Default array values to []Lee Jarvis2014-11-191-0/+4
|
* Update readme and add type aliasesLee Jarvis2014-11-191-0/+2
|
* Ensure booleans default to falseLee Jarvis2014-11-192-1/+9
|
* Handle UnknownOption exceptionsLee Jarvis2014-11-194-9/+15
|
* Add MissingArgument error processing, and suppressingLee Jarvis2014-11-196-3/+43
|
* Handle short grouped flagsLee Jarvis2014-11-191-6/+15
|
* Support flag=argLee Jarvis2014-11-191-5/+16
|
* Yield option arguments to option blocksLee Jarvis2014-11-192-4/+6
|
* Allow options to be hidden from help stringLee Jarvis2014-11-192-2/+10
|
* Add Slop.parse()Lee Jarvis2014-11-192-1/+8
|
* Support method_missing checks for used optionsLee Jarvis2014-11-191-0/+13
|
* Add custom "finish" method for optionsLee Jarvis2014-11-193-2/+19
|