summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authornfagerlund <nick.fagerlund@gmail.com>2011-02-25 11:19:34 -0800
committernfagerlund <nick.fagerlund@gmail.com>2011-02-25 11:19:34 -0800
commit439115e34c16be27549ee9aa122c418ae6992d76 (patch)
tree84fe8127f609025e257dc511db3c01fb8e8a2633 /lib/puppet
parenta42e796fa88574ef97a99b034c4229b961bdac60 (diff)
downloadpuppet-439115e34c16be27549ee9aa122c418ae6992d76.tar.gz
puppet-439115e34c16be27549ee9aa122c418ae6992d76.tar.xz
puppet-439115e34c16be27549ee9aa122c418ae6992d76.zip
(#6499) Make puppet respond identically to -h and --help
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.
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/util/command_line.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/util/command_line.rb b/lib/puppet/util/command_line.rb
index 4aff0a8cb..7f74d266a 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