diff options
Diffstat (limited to 'lib/puppet/application/resource.rb')
-rw-r--r-- | lib/puppet/application/resource.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/application/resource.rb b/lib/puppet/application/resource.rb index 52320e7a1..6a8c4e47c 100644 --- a/lib/puppet/application/resource.rb +++ b/lib/puppet/application/resource.rb @@ -38,7 +38,7 @@ class Puppet::Application::Resource < Puppet::Application end def main - args = Puppet::Util::CommandLine.args + args = command_line.args type = args.shift or raise "You must specify the type to display" typeobj = Puppet::Type.type(type) or raise "Could not find type #{type}" name = args.shift |