From 5f7455ea2f618ca7db4b45ee25666e0109f2abf6 Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Wed, 10 Jun 2009 18:10:40 +1000 Subject: Fixed #2222 - Cleanup pi binary options and --help output --- bin/pi | 40 ++++++++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 6 deletions(-) (limited to 'bin') diff --git a/bin/pi b/bin/pi index 6ac759ed3..ee6a10cb6 100755 --- a/bin/pi +++ b/bin/pi @@ -5,13 +5,41 @@ # # Print help about puppet types on the console. Run with '-h' to get detailed # help. +# = Usage # +# pi [-h|--help] [-p|--providers] [-l|--list] [-m|--meta] +# +# = Description +# +# Prints details of Puppet types, providers and metaparameters on the console. +# +# = Options +# +# help:: +# Print this help text +# +# providers:: +# Describe providers in detail +# +# list:: +# List all types +# +# meta:: +# List all metaparameters +# +# = Example +# +# pi --list +# +# = Author +# +# Luke Kanies +# +# = Copyright +# +# Copyright (c) 2005 Reductive Labs, LLC +# Licensed under the GNU Public License -# FIXME: (1) Formatting could be a lot prettier -# (2) The command line options are kinda screwy; unclear how best to -# present the various pieces of info to user - -require 'puppet/application' require 'puppet/application/pi' -Puppet::Application[:pi].run \ No newline at end of file +Puppet::Application[:pi].run -- cgit