diff options
author | Ben Brady <bbrady@edgecast.com> | 2015-11-24 20:18:00 -0800 |
---|---|---|
committer | Ben Brady <bbrady@edgecast.com> | 2015-11-24 20:18:00 -0800 |
commit | 80d5484f99a28b09d745d4d3637aed8a1744a81b (patch) | |
tree | b44a4d6e7ad80e6877b36503ac1b1d602f8c814f /lib | |
parent | 2c532b9a153ffbb982d67d1297e0e94fb08f7040 (diff) | |
download | slop-80d5484f99a28b09d745d4d3637aed8a1744a81b.tar.gz |
Fix bug where true is passed to BoolOption block regardless of --no- prefix
Diffstat (limited to 'lib')
-rw-r--r-- | lib/slop/types.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/slop/types.rb b/lib/slop/types.rb index 672aef3..3848b5e 100644 --- a/lib/slop/types.rb +++ b/lib/slop/types.rb @@ -16,7 +16,7 @@ module Slop def call(value) self.explicit_value = value - true + !force_false? end def value @@ -92,5 +92,4 @@ module Slop true end end - end |