lib/puppet/util/command_line.rb had a special case for puppet --help to return 
generic help instead of the puppet apply help, but it would return puppet apply 
help when you gave it -h.

Signed-off-by: nfagerlund <[email protected]>
---
 lib/puppet/util/command_line.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/puppet/util/command_line.rb b/lib/puppet/util/command_line.rb
index 4aff0a8..7f74d26 100644
--- a/lib/puppet/util/command_line.rb
+++ b/lib/puppet/util/command_line.rb
@@ -85,7 +85,7 @@ module Puppet
         if zero == 'puppet'
           case argv.first
           when nil;              [ stdin.tty? ? nil : "apply", argv] # ttys 
get usage info
-          when "--help";         [nil,     argv] # help should give you usage, 
not the help for `puppet apply`
+          when "--help", "-h";         [nil,     argv] # help should give you 
usage, not the help for `puppet apply`
           when /^-|\.pp$|\.rb$/; ["apply", argv]
           else [ argv.first, argv[1..-1] ]
           end
-- 
1.7.3.3

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to