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

Options are retained if task is called repeatedly #172

Open
winni-genp opened this issue Aug 17, 2016 · 1 comment
Open

Options are retained if task is called repeatedly #172

winni-genp opened this issue Aug 17, 2016 · 1 comment
Projects

Comments

@winni-genp
Copy link

# pavement.py
from paver.easy import *


@task
def pr(options):
    print options


@task
def test():
    for i in ['a', 'b']:
        call_task('pr', options={i: True})

gives me the following unexpected output:

$ paver test
---> pavement.test
---> pavement.pr
Namespace(dry_run=None, pavement_file='pavement.py', pr=Bunch(a=True), test=Bunch())
---> pavement.pr
Namespace(dry_run=None, pavement_file='pavement.py', pr=Bunch(a=True, b=True), test=Bunch())

Is there a way to have the second call of pr not have a=True passed in as an option?

@Almad
Copy link
Member

Almad commented Aug 19, 2016

Hmm, that is interesting. I'll look into it.

@Almad Almad added this to To Do in Paver 1.3 Dec 28, 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