diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-11-08 05:22:24 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-11-08 05:22:24 +0000 |
| commit | 744ded30a02883dd8ce5fbf2b847f10acb226d6e (patch) | |
| tree | d962b7b21f3a5d20dafd8e7f862c23a2449c2c9b /bin/puppetrun | |
| parent | dc4d98091a5566be289830839f1d6eb39367b42c (diff) | |
Merging the code over from the oscar branch. I will now be doing all development in the trunk again, except for larger changes, which will still get their own branch. This is a merge of the changes from revision 1826 to revision 1834.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1835 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'bin/puppetrun')
| -rwxr-xr-x | bin/puppetrun | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/bin/puppetrun b/bin/puppetrun index d4af0abb6..30f1a043f 100755 --- a/bin/puppetrun +++ b/bin/puppetrun @@ -170,14 +170,6 @@ def setupldap end end -$haveusage = true - -begin - require 'rdoc/usage' -rescue Exception - $haveusage = false -end - flags = [ [ "--all", "-a", GetoptLong::NO_ARGUMENT ], [ "--class", "-c", GetoptLong::REQUIRED_ARGUMENT ], @@ -234,7 +226,7 @@ begin when "--host" hosts << arg when "--help" - if $haveusage + if Puppet.feature.usage? RDoc::usage && exit else puts "No help available unless you have RDoc::usage installed" @@ -257,9 +249,6 @@ begin } rescue GetoptLong::InvalidOption => detail $stderr.puts "Try '#{$0} --help'" - #if $haveusage - # RDoc::usage(1,'usage') - #end exit(1) end |
