summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/command_line.rb
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2010-04-30 15:47:15 -0700
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commit5683fd983b9a165ffbb8f08e67cfe903ec0e41b7 (patch)
treeb1a908be53502201b5ee0f1b37aae8e57a14bf37 /lib/puppet/util/command_line.rb
parentd038a1d3ddffdf1366c78fe31118e9f15c1c6ed1 (diff)
downloadpuppet-5683fd983b9a165ffbb8f08e67cfe903ec0e41b7.tar.gz
puppet-5683fd983b9a165ffbb8f08e67cfe903ec0e41b7.tar.xz
puppet-5683fd983b9a165ffbb8f08e67cfe903ec0e41b7.zip
Feature #2276 Single Executable: Pass a commandline object to the application
Refactor so that the command line options only get parsed once Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
Diffstat (limited to 'lib/puppet/util/command_line.rb')
-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 6e67fd706..e6656985f 100644
--- a/lib/puppet/util/command_line.rb
+++ b/lib/puppet/util/command_line.rb
@@ -75,7 +75,7 @@ module Puppet
puts self.class.usage_message
elsif self.class.available_subcommands.include?(subcommand_name) #subcommand
require File.join(self.class.appdir, subcommand_name)
- Puppet::Application[subcommand_name].run
+ Puppet::Application.find(subcommand_name).new(self).run
else
abort "Error: Unknown command #{subcommand_name}.\n#{usage_message}"
end