Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with no_help and dependent tasks #125

Open
aurelianito opened this issue Apr 28, 2014 · 3 comments
Open

Problem with no_help and dependent tasks #125

aurelianito opened this issue Apr 28, 2014 · 3 comments
Projects

Comments

@aurelianito
Copy link

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:

from paver.easy import *

@task
@no_help
@cmdopts([("p1=",None,"p1 help")])
def hidden(options):
  print options["p1"]

@task
@needs("hidden")
@cmdopts([("p2=",None,"p2 help")])
def published(options):
  "Some kind of explanation of what it does"
  print options["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?

@Almad
Copy link
Member

Almad commented Apr 29, 2014

@no_help or @no_task?

@aurelianito
Copy link
Author

Sorry, @no_help (as it is in the example). My mistake :-/.

@aurelianito
Copy link
Author

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.

@Almad Almad added this to To Do in Paver 1.3 via automation Dec 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Paver 1.3
  
To Do
Development

No branches or pull requests

2 participants