Skip to content

uv run -c doesn't propagate arguments #10033

@charliermarsh

Description

@charliermarsh

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions