diff options
| author | Jesse Wolfe <jes5199@gmail.com> | 2010-04-30 14:54:07 -0700 |
|---|---|---|
| committer | test branch <puppet-dev@googlegroups.com> | 2010-02-17 06:50:53 -0800 |
| commit | 63e2e56d3172bdc80aaca5f5ddde5811728e3c76 (patch) | |
| tree | 38e3607fe83223d135f1c327682dbd8698bb138d /lib/puppet/reference | |
| parent | b6e2ce6a85c953fcd57a3b837ccaa794a634dc22 (diff) | |
| download | puppet-63e2e56d3172bdc80aaca5f5ddde5811728e3c76.tar.gz puppet-63e2e56d3172bdc80aaca5f5ddde5811728e3c76.tar.xz puppet-63e2e56d3172bdc80aaca5f5ddde5811728e3c76.zip | |
feature #2276 Single Executable: subcommand method
Extract the logic to determine the subcommand name into a method.
Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
Diffstat (limited to 'lib/puppet/reference')
| -rw-r--r-- | lib/puppet/reference/providers.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/reference/providers.rb b/lib/puppet/reference/providers.rb index d425d803e..df02178e3 100644 --- a/lib/puppet/reference/providers.rb +++ b/lib/puppet/reference/providers.rb @@ -8,8 +8,8 @@ providers = Puppet::Util::Reference.newreference :providers, :title => "Provider end types.sort! { |a,b| a.name.to_s <=> b.name.to_s } - unless ARGV.empty? - types.reject! { |type| ! ARGV.include?(type.name.to_s) } + unless Puppet::Util::CommandLine.args.empty? + types.reject! { |type| ! Puppet::Util::CommandLine.args.include?(type.name.to_s) } end ret = "Details about this host:\n\n" |
