Skip to content

Commit

Permalink
Sort the flags when printing them out
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed Nov 2, 2009
1 parent 92f8e21 commit 62a6b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/github.rb
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def load(file)
message << ffmt.format(usage_str)
end
end
GitHub.flag_descriptions[command].each do |flag, fdesc|
GitHub.flag_descriptions[command].sort {|a,b| a.to_s <=> b.to_s }.each do |flag, fdesc|
flagstr = "#{" " * longest} %-#{flongest}s" % "--#{flag}"
message << ffmt.format(" #{flagstr}: #{fdesc}")
end
Expand Down

0 comments on commit 62a6b62

Please sign in to comment.