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
If I hide a task using the @no_task decorator and need it in another, the help for the second one is missing of the parameters defined by @cmdopts in the first one.
Hereunder is a POC:
frompaver.easyimport*@task@no_help@cmdopts([("p1=",None,"p1 help")])defhidden(options):
printoptions["p1"]
@task@needs("hidden")@cmdopts([("p2=",None,"p2 help")])defpublished(options):
"Some kind of explanation of what it does"printoptions["p2"]
If I run paver help published will show the option for p2 but not for p1. I expect both to be there. How can I accomplish that?
The text was updated successfully, but these errors were encountered:
I think that the problem is in tasks.py, line 439 (https://github.com/paver/paver/blob/master/paver/tasks.py#L439). I expect the @no_help decorator to suppress the task from the main help, but I dont expect it to hide the options available to dependent tasks.
If I hide a task using the
@no_task
decorator and need it in another, the help for the second one is missing of the parameters defined by@cmdopts
in the first one.Hereunder is a POC:
If I run
paver help published
will show the option forp2
but not forp1
. I expect both to be there. How can I accomplish that?The text was updated successfully, but these errors were encountered: