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
When using a param of type list and adding default values in the definition of the param, when invoking the task with list values you specified in the command line, it does not create a new list, but appends to the default list.
> doit list_with_duplicates -l item1
ERROR: Task generation 'list_with_duplicates' has duplicated definition of 'list_with_duplicates:name_of_list_item1'
Environment
OS: MacOS 11.6.8
python version: 3.9.12
doit version: 0.36.0
The text was updated successfully, but these errors were encountered:
I think I just ran into something similar which is, I think, actually the root cause issue here: if an action generator uses yield to generate tasks the params are ignored.
But it has some drawbacks as the CLI argument isn't available as a regular Python variable so you can't use it except in the few places doit will expand it (e.g. you couldn't use it in an f-string to generate a title).
Hi,
When using a param of type
list
and adding default values in the definition of the param, when invoking the task with list values you specified in the command line, it does not create a new list, but appends to the default list.doit.py
Execution
Environment
The text was updated successfully, but these errors were encountered: