summaryrefslogtreecommitdiff
path: root/test/option_test.rb
Commit message (Expand)AuthorAgeFilesLines
* Tests on Ruby 2.7.0Juha Ylitalo2020-01-071-2/+2
* Add config option underscore_flagslbriais-feature/add_config_for_underscore_switchLaurent B2017-05-011-0/+4
* Better handling of option names with multiple wordsTim Rogers2015-06-131-0/+4
* Add Result#to_hashLee Jarvis2014-11-191-0/+10
* Add Options#to_s help stringLee Jarvis2014-11-191-0/+14
* Start of rewriteLee Jarvis2014-11-181-122/+0
* Beginning of Slop 4.0 rewriteLee Jarvis2013-08-291-93/+81
* Slop is now strict by default, and adds --help by defaultLee Jarvis2013-08-131-4/+4
* fix 1.9 test warningsLee Jarvis2012-08-141-9/+9
* add the ability to concat list arguments together as a single valueLee Jarvis2012-07-311-0/+1
* ensure multiple switches respect count increasesLee Jarvis2012-05-291-0/+1
* ensure range 'typecast' allows negative range valuesLee Jarvis2012-05-281-0/+1
* added :as => :count functionalityLee Jarvis2012-05-281-1/+6
* Add strict checks for integer and float argumentsAmon Sha2012-01-271-1/+9
* ensure tests run green on 1.8.7Lee Jarvis2012-01-271-1/+4
* value_to_range return a range even if the value looks like anLee Jarvis2012-01-231-0/+4
* overwriting option help textLee Jarvis2012-01-151-9/+15
* ensure help strings are formattedLee Jarvis2012-01-151-0/+11
* remove Option::DEFAULT_TYPES and push types into ivarLee Jarvis2012-01-121-2/+2
* test :default valueLee Jarvis2012-01-121-0/+7
* types keys should be symbolsLee Jarvis2012-01-061-1/+1
* added test for adding custom typesLee Jarvis2012-01-061-1/+11
* clean up array cast testsLee Jarvis2012-01-061-19/+5
* ensure :as => Array splits string argumentsLee Jarvis2012-01-061-20/+20
* ensure option arguments can be negative rangesLee Jarvis2012-01-061-1/+1
* added basic type casting testsLee Jarvis2012-01-061-0/+57
* added tests for Option#callLee Jarvis2011-12-231-0/+9
* initial basic pass at public apiLee Jarvis2011-12-231-189/+12
* ensure optional argument values are returnedLee Jarvis2011-12-081-0/+3
* ensure short options accept an appended =Lee Jarvis2011-11-221-0/+1
* return nil for casts which dont expect argumentsLee Jarvis2011-11-101-0/+8
* allow foo= long flag options for options which accept an argumentLee Jarvis2011-11-041-0/+5
* Support :as => 'count'Conrad Irwin2011-10-131-0/+5
* added :required option to Slop::Option for mandatory optionsLee Jarvis2011-06-231-0/+9
* allow a range to accept a negative integer at either endLee Jarvis2011-05-171-0/+2
* do not parse negative integers as optionsLee Jarvis2011-05-171-0/+5
* add Option#omit_exec? for use with the :unless optionLee Jarvis2011-05-161-0/+12
* remove the Option.callback accessor and instead have Option respond to aLee Jarvis2011-05-161-3/+7
* push test into the load path before running testsLee Jarvis2011-04-271-1/+1
* ensure tests can be ran soloLee Jarvis2011-04-271-1/+1
* add Option#count method which increases every time an option is invokedLee Jarvis2011-04-241-0/+7
* Revert "add :as => Dir option for globbing directories"Lee Jarvis2011-04-241-11/+0
* add :as => Dir option for globbing directoriesLee Jarvis2011-04-241-0/+11
* add test for abbreviated :symLee Jarvis2011-04-231-0/+1
* fix tpyoLee Jarvis2011-04-231-1/+1
* allow :help to accept an optional string to append to the helpLee Jarvis2011-04-191-0/+6
* do not display help for options with :help => falseLee Jarvis2011-04-191-0/+6
* have :as => Range return an integer if the value is numeric onlyLee Jarvis2011-04-141-0/+2
* add test for thisLee Jarvis2011-04-141-0/+4
* first try at rangesLee Jarvis2011-04-141-0/+7