* fix: help: get_command is now a class method
* birseyler yapmadik degil
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user