Fixed help
This commit is contained in:
parent
b08d5e1a34
commit
e469455bc0
@ -19,8 +19,10 @@ class ConsoleScript(cli2.ConsoleScript):
|
|||||||
import inspect
|
import inspect
|
||||||
from podctl.podfile import Podfile
|
from podctl.podfile import Podfile
|
||||||
self.podfile = Podfile.factory(os.getenv('PODFILE', 'pod.py'))
|
self.podfile = Podfile.factory(os.getenv('PODFILE', 'pod.py'))
|
||||||
for name in self.podfile.pod.scripts.keys():
|
for name, script in self.podfile.pod.scripts.items():
|
||||||
self[name] = cli2.Callable(name, self.podfile.pod.script(name),)
|
cb = self.podfile.pod.script(name)
|
||||||
|
cb.__doc__ = inspect.getdoc(script)
|
||||||
|
self[name] = cli2.Callable(name, cb)
|
||||||
return super().__call__(*args, **kwargs)
|
return super().__call__(*args, **kwargs)
|
||||||
|
|
||||||
def call(self, command):
|
def call(self, command):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user