From 80d5484f99a28b09d745d4d3637aed8a1744a81b Mon Sep 17 00:00:00 2001 From: Ben Brady Date: Tue, 24 Nov 2015 20:18:00 -0800 Subject: Fix bug where true is passed to BoolOption block regardless of --no- prefix --- lib/slop/types.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.1