diff options
author | Lee Jarvis <ljjarvis@gmail.com> | 2014-11-19 12:41:16 +0000 |
---|---|---|
committer | Lee Jarvis <ljjarvis@gmail.com> | 2014-11-19 12:41:16 +0000 |
commit | c811bc2e28b2326b924c69abe2e4729508f482b5 (patch) | |
tree | 6ec2e948ad6e1eb89714f7bdd767c83c0414b5f0 /lib/slop/option.rb | |
parent | f8895c3d2f962340c99d3211d71c9bb60bf69f18 (diff) | |
download | slop-c811bc2e28b2326b924c69abe2e4729508f482b5.tar.gz |
Handle default values
Diffstat (limited to 'lib/slop/option.rb')
-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 d4c0f0b..a624110 100644 --- a/lib/slop/option.rb +++ b/lib/slop/option.rb @@ -30,7 +30,7 @@ module Slop end def value - @value + @value || config[:default] end def flag |