Skip to content

Mutliple invokation of the same task. #167

@sophacles

Description

@sophacles

So it seems that when I do:

inv task1 --foo=arg1 task2

everything works exactly as expected.

But when I do:

inv task1 --foo=arg1 task1 --foo=arg2 task2

I get the error:

No idea what 'arg2' is!

There is no explicit mention in the docs that I can find about repeating a task on the command line. If it has been decided to disallow this, docs should be updated. If the behavior is undefined, I vote that allowing repeated tasks is a good idea for a lot of things. For instance my uwsgi deploy code for 3 different sub-projects is a only a few command line parameters of difference. I don't like having to do multiple commands or:

inv proj1 --path=place1 proj2 --path=place2 proj3 --path=place3

when I could do:

inv proj --name=p1 --path=place1 proj --name=p2 --path=place2 proj --name=p3 --path=place3

Particularly when I add proj4 as yet another task stub function.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions