diff options
author | Sander Botman <sbotman@schubergphilis.com> | 2013-04-15 23:16:31 +0200 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-05-30 09:13:24 -0700 |
commit | b410751b753a076488cd8239d2ceeb8e52937624 (patch) | |
tree | fb09c85dd5e34d4a8ae7d4ff0409f99fc3c87905 /lib/chef/knife.rb | |
parent | 98c4cb1d138ea031cc590263517ab2162a72c070 (diff) | |
download | chef-b410751b753a076488cd8239d2ceeb8e52937624.tar.gz |
sorting subcommands, this will display all subcommands in the order a..z
Diffstat (limited to 'lib/chef/knife.rb')
-rw-r--r-- | lib/chef/knife.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife.rb b/lib/chef/knife.rb index 74507a4319..9c48925216 100644 --- a/lib/chef/knife.rb +++ b/lib/chef/knife.rb @@ -150,7 +150,7 @@ class Chef commands_to_show.sort.each do |category, commands| next if category =~ /deprecated/i msg "** #{category.upcase} COMMANDS **" - commands.each do |command| + commands.sort.each do |command| msg subcommands[command].banner if subcommands[command] end msg |