* 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
|
- 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)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user