summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLee Jarvis <lee@jarvis.co>2011-03-16 15:02:24 +0000
committerLee Jarvis <lee@jarvis.co>2011-03-16 15:02:24 +0000
commitb3e7a750e3b6ad348edec2048e802999d4dd3ad3 (patch)
tree6d115d1fd9ff988f1c26207ded3dad43bdf4f801 /lib
parentf34418f4d23f13830bcddbb3cce936db065521d8 (diff)
downloadslop-b3e7a750e3b6ad348edec2048e802999d4dd3ad3.tar.gz
fixed to_s for if a banner doesnt exist
Diffstat (limited to 'lib')
-rw-r--r--lib/slop.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/slop.rb b/lib/slop.rb
index 3c08940..fa91305 100644
--- a/lib/slop.rb
+++ b/lib/slop.rb
@@ -77,7 +77,7 @@ class Slop
def to_s
banner = "#{@banner}\n" if @banner
- banner + options.map(&:to_s).join("\n")
+ (banner || '') + options.map(&:to_s).join("\n")
end
alias :help :to_s