* svn yalakaligi

This commit is contained in:
Eray Özkural
2005-07-05 18:43:02 +00:00
parent f4512a8c73
commit 38c45558dd
+13 -3
View File
@@ -7,9 +7,19 @@ from optparse import OptionParser
import pisi
from pisi.cli import buildhelper, installhelper, indexhelper
usage = """%prog COMMAND [ARGUMENTS] [options]
usage = """%prog <subcommand> [options] [arguments]
Where commands are bla bla...
Subcommands:
help
build
install
index
updatedb
Use \"%prog help <subcommand>\" 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,