* fix: help: get_command is now a class method

* birseyler yapmadik degil
This commit is contained in:
Eray Özkural
2005-08-16 17:42:03 +00:00
parent cc5d1247c6
commit c853ed01a8
2 changed files with 5 additions and 6 deletions
+3 -4
View File
@@ -87,13 +87,12 @@ Legend:
- internet: http/ftp - internet: http/ftp
- local repository - local repository
- cdrom dvd - cdrom dvd
- UI / UI
- ask alternatives to choose from (eray) - ask alternatives to choose from (eray)
- pyqt UI class to interface - pyqt UI class to interface
- PISIMAT - PISIMAT
- installation / pykde GUI (cartman)
- remove + metaclass coolness for CLI command framework (eray)
- upgrade
- partial caching and automatic resume for file download (meren) - partial caching and automatic resume for file download (meren)
- use a separate "partial/" subdir like urpmi - use a separate "partial/" subdir like urpmi
/ exception handling (baris) / exception handling (baris)
+2 -2
View File
@@ -136,7 +136,7 @@ class Command(object):
# pass # pass
def get_name(self): def get_name(self):
return self.__class__.longname return self.__class__.name
def format_name(self): def format_name(self):
(name, shortname) = self.get_name() (name, shortname) = self.get_name()
@@ -201,7 +201,7 @@ If run without parameters, it prints the general help."""
self.init() self.init()
for arg in self.args: for arg in self.args:
obj = get_command(arg, True) obj = Command.get_command(arg, True)
obj.help() obj.help()
print print