diff --git a/pisi-cli b/pisi-cli index de95cc37..e86223b8 100755 --- a/pisi-cli +++ b/pisi-cli @@ -7,9 +7,19 @@ from optparse import OptionParser import pisi from pisi.cli import buildhelper, installhelper, indexhelper -usage = """%prog COMMAND [ARGUMENTS] [options] +usage = """%prog [options] [arguments] -Where commands are bla bla... +Subcommands: + +help +build +install +index +updatedb + +Use \"%prog help \" for help on a specific subcommand. + +PISI Package Manager """ class PisiCLI(object): @@ -30,6 +40,7 @@ class PisiCLI(object): help = "do not perform any action, just show what\ would be done") (options, args) = parser.parse_args() + self.parser = parser try: @@ -92,7 +103,6 @@ class PisiCLI(object): indexfile = self.args[0] indexhelper.updateindex(indexfile) - def runCommand(self): commands = { "help": self.help,