Luigi: Problems with command line arguments (with underscore in name)

Created on 22 Jun 2016  路  3Comments  路  Source: spotify/luigi

I have a task with a parameter with name "my_parameter". If I give it a value using the command line:
--my_parameter value

I get this error:
luigi: error: unrecognized arguments: --my_parameter value

Everything works as expected if I rename the parameter to "myparameter" in the task and use this in the command line:
--myparameter value

Most helpful comment

Not very well documented (you can contribute :)), but it is described (implicitly) in example:
http://luigi.readthedocs.io/en/stable/example_top_artists.html#running-this-locally
_ should be translated to - when passing down from CLI.

All 3 comments

Not very well documented (you can contribute :)), but it is described (implicitly) in example:
http://luigi.readthedocs.io/en/stable/example_top_artists.html#running-this-locally
_ should be translated to - when passing down from CLI.

@sisidra , thanks for the answer, I have added a note in the documentation, please have a look at the pull request.

Resolved by #1729

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mwheeler-hdai picture mwheeler-hdai  路  6Comments

birdcolour picture birdcolour  路  4Comments

florian-niefind picture florian-niefind  路  7Comments

ocschwar picture ocschwar  路  3Comments

gioelelm picture gioelelm  路  5Comments