summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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")