diff options
author | Lee Jarvis <lee@jarvis.co> | 2011-03-16 15:02:24 +0000 |
---|---|---|
committer | Lee Jarvis <lee@jarvis.co> | 2011-03-16 15:02:24 +0000 |
commit | b3e7a750e3b6ad348edec2048e802999d4dd3ad3 (patch) | |
tree | 6d115d1fd9ff988f1c26207ded3dad43bdf4f801 /lib | |
parent | f34418f4d23f13830bcddbb3cce936db065521d8 (diff) | |
download | slop-b3e7a750e3b6ad348edec2048e802999d4dd3ad3.tar.gz |
fixed to_s for if a banner doesnt exist
Diffstat (limited to 'lib')
-rw-r--r-- | lib/slop.rb | 2 |
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 |