summaryrefslogtreecommitdiff
path: root/lib/chef/knife.rb
diff options
context:
space:
mode:
authorSander Botman <sbotman@schubergphilis.com>2013-04-15 23:16:31 +0200
committerBryan McLellan <btm@opscode.com>2013-05-30 09:13:24 -0700
commitb410751b753a076488cd8239d2ceeb8e52937624 (patch)
treefb09c85dd5e34d4a8ae7d4ff0409f99fc3c87905 /lib/chef/knife.rb
parent98c4cb1d138ea031cc590263517ab2162a72c070 (diff)
downloadchef-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.rb2
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