bir küçük hata giderme

This commit is contained in:
Barış Metin
2005-07-18 08:51:13 +00:00
parent 6b175c8e45
commit 860f285471
+3 -1
View File
@@ -72,7 +72,7 @@ class Command(object):
version="%prog " + pisi.__version__) version="%prog " + pisi.__version__)
#self.parser.allow_interspersed_args = False #self.parser.allow_interspersed_args = False
self.options() self.options()
self.parsr = commonopts(self.parser) self.parser = commonopts(self.parser)
(self.options, args) = self.parser.parse_args() (self.options, args) = self.parser.parse_args()
self.args = args[1:] self.args = args[1:]
@@ -112,11 +112,13 @@ class Help(Command):
def run(self): def run(self):
if not self.args: if not self.args:
print usage_text print usage_text
print self.parser.format_option_help()
return return
for arg in self.args: for arg in self.args:
obj = cmdObject(arg, True) obj = cmdObject(arg, True)
obj.help() obj.help()
# print "\n",self.parser.format_option_help()
class Build(Command): class Build(Command):
"""build: compile PISI package using a pspec.xml file""" """build: compile PISI package using a pspec.xml file"""