diff options
author | Victor Gama <hey@vito.io> | 2023-02-15 11:41:22 -0300 |
---|---|---|
committer | Victor Gama <hey@vito.io> | 2023-02-15 11:43:06 -0300 |
commit | 556f88322951b4a64c7bdf6f68f3e0a970940fb7 (patch) | |
tree | e0964415b51bfd000e3b5fd4603853c322a0dc7f | |
parent | 25cae16e2c3ca2fbe8c1c75923dae9b14cc38b72 (diff) | |
download | slop-556f88322951b4a64c7bdf6f68f3e0a970940fb7.tar.gz |
Allow singular form 'validate_type' to be provided to Option
-rw-r--r-- | lib/slop/option.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/slop/option.rb b/lib/slop/option.rb index 3afc93a..655b283 100644 --- a/lib/slop/option.rb +++ b/lib/slop/option.rb @@ -115,7 +115,7 @@ module Slop # be parsed into the desired type or does not conform to the expected type's # format def validate_type? - config[:validate_types] + config[:validate_type] || config[:validate_types] end # Returns all flags joined by a comma. Used by the help string. |