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

Problems with command line arguments (with underscore in name) #1728

Closed
alfonsomhc opened this issue Jun 22, 2016 · 3 comments
Closed

Problems with command line arguments (with underscore in name) #1728

alfonsomhc opened this issue Jun 22, 2016 · 3 comments

Comments

@alfonsomhc
Copy link
Contributor

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

@sisidra
Copy link
Contributor

sisidra commented Jun 22, 2016

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.

@alfonsomhc
Copy link
Contributor Author

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

@dlstadther
Copy link
Collaborator

Resolved by #1729

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants