diff options
author | Lee Jarvis <ljjarvis@gmail.com> | 2013-08-13 20:37:10 +0100 |
---|---|---|
committer | Lee Jarvis <ljjarvis@gmail.com> | 2013-08-13 20:37:10 +0100 |
commit | 8e7dca4c0f6ecba4eb21f8ca44dff8293a8bbbd6 (patch) | |
tree | db2369834c7769c3f63c96405f2b8200d65d6a8e /lib/slop.rb | |
parent | d0d1c4e5aeb1afde1166b9e18ab5ec8476f09b69 (diff) | |
download | slop-8e7dca4c0f6ecba4eb21f8ca44dff8293a8bbbd6.tar.gz |
Use curlys for chaining block method calls
Diffstat (limited to 'lib/slop.rb')
-rw-r--r-- | lib/slop.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/slop.rb b/lib/slop.rb index dfe459f..3c77334 100644 --- a/lib/slop.rb +++ b/lib/slop.rb @@ -601,9 +601,9 @@ class Slop def commands_to_help padding = 0 @commands.each { |c, _| padding = c.size if c.size > padding } - @commands.map do |cmd, opts| + @commands.map { |cmd, opts| " #{cmd}#{' ' * (padding - cmd.size)} #{opts.description}" - end.join("\n") + }.join("\n") end end |