[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 2.6.5-303-gfcfa26a

nfagerlund nick.fagerlund at gmail.com
Thu Mar 17 10:47:53 UTC 2011


The following commit has been merged in the upstream branch:
commit 439115e34c16be27549ee9aa122c418ae6992d76
Author: nfagerlund <nick.fagerlund at gmail.com>
Date:   Fri Feb 25 11:19:34 2011 -0800

    (#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.

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

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list