You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but the information not pushed forward to the function.
810returnfunc(func_name, func.__cement_meta__)
That would make things much easier.
Actually, I solved that by:
@ex(help="This is the helpline")defmycommand(self):
func=getattr(self, self.app.pargs.__dispatch__.split('.')[1])
print(func.__cement_meta__['parser_options']['help'])
This is a bit anoying, would prefer:
@ex(help="This is the helpline")defmycommand(self, func_name, func_meta):
print(func_meta['parser_options']['help'])
What do you think about that?
The text was updated successfully, but these errors were encountered:
By the way - let me say that I am totally impressed about Cement. Very well done and great Interfaces and Abstracts. I used it some years ago and now for a new project again. I am very happy that I have choose it again. Thanks for your work!
Hi, I wanted to re-use especially the given help information from @ex decorator in some log infos of command:
As I checked the code, all is already prepared at the lines:
cement/cement/ext/ext_argparse.py
Lines 808 to 810 in ea32057
but the information not pushed forward to the function.
That would make things much easier.
Actually, I solved that by:
This is a bit anoying, would prefer:
What do you think about that?
The text was updated successfully, but these errors were encountered: