-
Notifications
You must be signed in to change notification settings - Fork 378
Closed
Milestone
Description
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.