Skip to content

Commit

Permalink
line up commands
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed May 6, 2008
1 parent 808c2c3 commit 8261bb0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/github.rb
Expand Up @@ -90,7 +90,9 @@ def debug?
GitHub.register :default do
puts "Usage: github command <space separated arguments>", ''
puts "Available commands:", ''
longest = GitHub.descriptions.map { |d,| d.to_s.size }.max
GitHub.descriptions.each do |command, desc|
command = "%-#{longest}s" % command
puts " #{command} => #{desc}"
end
puts
Expand Down

0 comments on commit 8261bb0

Please sign in to comment.