From 5683fd983b9a165ffbb8f08e67cfe903ec0e41b7 Mon Sep 17 00:00:00 2001 From: Jesse Wolfe Date: Fri, 30 Apr 2010 15:47:15 -0700 Subject: 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 --- lib/puppet/application/filebucket.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/puppet/application/filebucket.rb') diff --git a/lib/puppet/application/filebucket.rb b/lib/puppet/application/filebucket.rb index ddc46e394..8e930f5e4 100644 --- a/lib/puppet/application/filebucket.rb +++ b/lib/puppet/application/filebucket.rb @@ -15,7 +15,7 @@ class Puppet::Application::Filebucket < Puppet::Application attr :args def run_command - @args = Puppet::Util::CommandLine.args + @args = command_line.args command = args.shift return send(command) if %w[get backup restore].include? command help -- cgit