Skip to content

uv run -c doesn't propagate arguments #10033

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

Closed
charliermarsh opened this issue Dec 19, 2024 · 0 comments · Fixed by #10034
Closed

uv run -c doesn't propagate arguments #10033

charliermarsh opened this issue Dec 19, 2024 · 0 comments · Fixed by #10034
Assignees
Labels
bug Something isn't working

Comments

@charliermarsh
Copy link
Member

Also, is it not supported to read a script from stdin and pass along command line arguments at the same time?

I can't get this to work:

$ echo '# /// script
     # requires-python = ">=3.10"
     # dependencies = [
     #     "urllib3",
     # ]
     # ///

     import sys; print(sys.argv)' | uv run - 1 2 3
Reading inline script metadata from `stdin`
['-c']

Placing a -- before or after - doesn't help either.

Originally posted by @BarrensZeppelin in #10021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant