* svn yalakaligi
This commit is contained in:
@@ -7,9 +7,19 @@ from optparse import OptionParser
|
|||||||
import pisi
|
import pisi
|
||||||
from pisi.cli import buildhelper, installhelper, indexhelper
|
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):
|
class PisiCLI(object):
|
||||||
@@ -30,6 +40,7 @@ class PisiCLI(object):
|
|||||||
help = "do not perform any action, just show what\
|
help = "do not perform any action, just show what\
|
||||||
would be done")
|
would be done")
|
||||||
(options, args) = parser.parse_args()
|
(options, args) = parser.parse_args()
|
||||||
|
|
||||||
self.parser = parser
|
self.parser = parser
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@@ -92,7 +103,6 @@ class PisiCLI(object):
|
|||||||
indexfile = self.args[0]
|
indexfile = self.args[0]
|
||||||
indexhelper.updateindex(indexfile)
|
indexhelper.updateindex(indexfile)
|
||||||
|
|
||||||
|
|
||||||
def runCommand(self):
|
def runCommand(self):
|
||||||
commands = {
|
commands = {
|
||||||
"help": self.help,
|
"help": self.help,
|
||||||
|
|||||||
Reference in New Issue
Block a user