--- a/plugin_pack.py Sun Apr 27 00:50:56 2008 -0400
+++ b/plugin_pack.py Sun Apr 27 04:48:01 2008 -0400
@@ -19,6 +19,8 @@
"""Usage: plugin_pack.py [OPTION...] command
@@ -27,9 +29,6 @@
- dependency-graph Outputs a graphviz script of the plugin's dependencies
- info <plugin> Display information about plugin.
@@ -191,6 +190,7 @@
+ """Displays information about other commands""" cmd = self.commands[args[0]]
@@ -201,7 +201,7 @@
def dist_dirs(self, args):
- """Outputs a list of all plugin directories to included in the distribution"""
+ """Displays a list of all plugin directories to included in the distribution""" print string.join(self.unique_dirs(), ' ')
commands['dist_dirs'] = dist_dirs
@@ -214,7 +214,7 @@
commands['config_file'] = config_file
def dependency_graph(self, args):
- """Outputs a graphviz script of dependencies"""
+ """Outputs a graphviz script showing plugin dependencies""" node = plugin.provides.replace('-', '_')
@@ -273,7 +273,7 @@
commands['dependency_graph'] = dependency_graph
- """Outputs all information about the given plugins"""
+ """Displays all information about the given plugins""" print self.plugins[p].__str__().strip()
@@ -284,6 +284,7 @@
+ """Displays stats about the plugin pack""" counts['total'] = len(self.plugins)
@@ -312,6 +313,19 @@
print " pidgin: %s" % (value(counts['pidgin']))
commands['stats'] = stats
+def show_usage(pp, exitcode): + cmds = pp.commands.keys() + print " %-20s %s" % (cmd, pp.commands[cmd].__doc__) # create our main instance
@@ -325,8 +339,7 @@
opts, args = getopt.getopt(sys.argv[1:], shortopts)
except getopt.error, msg:
@@ -347,8 +360,7 @@
pp.load_plugins(types, depends)