* 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
- local repository
- cdrom dvd
- UI
/ UI
- ask alternatives to choose from (eray)
- pyqt UI class to interface
- PISIMAT
- installation
- remove
- upgrade
/ pykde GUI (cartman)
+ metaclass coolness for CLI command framework (eray)
- partial caching and automatic resume for file download (meren)
- use a separate "partial/" subdir like urpmi
/ exception handling (baris)
+2 -2
View File
@@ -136,7 +136,7 @@ class Command(object):
# pass
def get_name(self):
return self.__class__.longname
return self.__class__.name
def format_name(self):
(name, shortname) = self.get_name()
@@ -201,7 +201,7 @@ If run without parameters, it prints the general help."""
self.init()
for arg in self.args:
obj = get_command(arg, True)
obj = Command.get_command(arg, True)
obj.help()
print