Bug fixes
- Fix boolean flags from being invalid when followed by arguments #279
Features:
- Add support for optional type validation #278 (Victor Gama)
Bug fixes:
- Fix explicitly false boolean options and allow for additional false arguments #276 (Eugene Otto)
Bug fixes:
- Handle flag arguments that contain equals character #275 (ConnorWGarvey)
Bug fixes:
- Fixed a bug where
flag=arg
syntax would raise an error when an empty value was passed. #266
Features:
- Add SymbolOption #263
Bug fixes:
- Use
+=
over<<
to handle frozen string literals. 255
Bug fixes:
- Fix bug where separator position was messed up if using
help: false
#253
Bug fixes:
- Fix keyword argument warning. #251
Features:
- Add support for prefixing integer values with
+
character #243 (Juha Ylitalo) - Add support for parsing floats with scientific notation #250 (Hansuk Hong)
Maintenance:
- Add 2.7.0 to CI and fix warnings #248 (Juha Ylitalo, Andrew Kane)
Features:
- Add
Slop::Result#fetch
. It returns the value of given option, or raises an error if given option is not present. #232 (Giovanni Benussi) - Adding a separator without passing any arguments now creates a separator with the empty string. #238 (Teemu Matilainen)
Bug fixes
- Ensure non-string option types have their flags consumed properly [#241] (Sutou Kouhei)
Bug fixes/Enhancements
- Fix equals character (=) being parsed incorrectly in some cases. #226
Bug fixes/Enhancements
- Fix separator so it doesn't mutate user data. #223 (Marc-André Lafortune)
- Add additional tests for
Options#separator
and fix issue where the last separator was ignored. #222
Features
- Add support for required options. #218 (William Woodruff)
Features:
- Added config option to avoid translating flags-with-dashes into underscores. #206 (@lbriais)
Bug fixes:
- Ruby 2.0.0 support broken in v4.4.2
Bug fixes:
Bug fixes:
- Handle bad constant names in
Slop.option_defined?
. #198 (Ellen Marie Dash)
Features
- Support parsing arguments prefixed with dashes. #192 (Andrew Clemons)
Bug fixes:
- Retain sort order inside tail sort. #193 (Caio Chassot)
Features
- Allow disabling array delimiter. #189 (Mike Pastore)
- Allow passing custom banner as config. #191 (Philip Rees)
Features:
- Better handling of option names with multiple words. #169 (Tim Rogers)
Minor enhancements:
- add ARGF notes to Arguments (README). #173 (Rick Hull)
Bug fixes:
- Fix arguments removed with option arguments. #182 (Naoki Mizuno)
- Fix bug where true is passed to BoolOption block regardless of --no- prefix. #184 (Ben Brady)
- only raise MissingArgument if not
default_value
. #163 (Ben Brady)
Features:
- Support for Regexp option type #167 (Laurent Arnoud)
- Support prefixed
--no-
for explicitly setting boolean options tofalse
#168 - Better handling of flags with multiple words #169 (Tim Rogers)
Features:
- Support for FloatOption #156 (Rick Hull)
- Support for
limit
config to ArrayOption. - Support for
tail
config to add options to the bottom of the help text. - Add explicit setter (#[]=) to Result class. #162
- Implement flag gettings for UnknownOption and MissingArgument error classes. #165 (sigurdsvela)
Minor enhancements:
- Reset parser every time
parse
is called.
Bug fixes:
- Remove "--" from unprocessed arguments #157 (David Rodríguez).
Features:
- Rebuilt from the ground up. See the v3 changelog for all existing changes: https://github.com/leejarvis/slop/blob/v3/CHANGES.md