summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2009-06-12 12:21:16 +1000
committerJames Turnbull <james@lovedthanlost.net>2009-06-12 12:21:16 +1000
commita94d2de421fbc107f08e1eb78f90dd2dc8861ab0 (patch)
treed8494304db7b39a918a1479a5a8eb08a8bb1c881
parent5f7455ea2f618ca7db4b45ee25666e0109f2abf6 (diff)
downloadpuppet-a94d2de421fbc107f08e1eb78f90dd2dc8861ab0.tar.gz
puppet-a94d2de421fbc107f08e1eb78f90dd2dc8861ab0.tar.xz
puppet-a94d2de421fbc107f08e1eb78f90dd2dc8861ab0.zip
Fixed pi tests
-rwxr-xr-xbin/pi3
-rw-r--r--lib/puppet/application/pi.rb8
2 files changed, 9 insertions, 2 deletions
diff --git a/bin/pi b/bin/pi
index ee6a10cb6..5ed485e85 100755
--- a/bin/pi
+++ b/bin/pi
@@ -19,7 +19,7 @@
# Print this help text
#
# providers::
-# Describe providers in detail
+# Describe providers in detail for each type
#
# list::
# List all types
@@ -30,6 +30,7 @@
# = Example
#
# pi --list
+# pi file --providers
#
# = Author
#
diff --git a/lib/puppet/application/pi.rb b/lib/puppet/application/pi.rb
index 2d7b8d86d..84742dc16 100644
--- a/lib/puppet/application/pi.rb
+++ b/lib/puppet/application/pi.rb
@@ -175,7 +175,13 @@ class TypeDoc
end
-Puppet::Application.new(:pi) do
+Puppet::Application.new(:pi,"#{$0} [options] [type]") do
+
+ should_not_parse_config
+
+ option("--short", "-s", "Only list parameters without detail") do |arg|
+ options[:parameters] = false
+ end
option("--providers","-p")
option("--list", "-l")