Skip to content
Discussion options

You must be logged in to vote

Yes, this is intentional. A shebang task is executed as a script file, so extra arguments are available through the interpreter’s normal positional-argument mechanism ($1/$@ in Bash). The “passed to the last command” documentation refers to separate entries in a run = [...] array, not lines within a multiline script.

If a task depends on particular arguments, defining them with usage is recommended. That gives the task an explicit, validated interface instead of relying on implicit passthrough behavior.

I opened #11336 to clarify this distinction in the documentation and add regression coverage.

This comment was generated by an AI coding assistant.

Replies: 1 comment

Comment options

jdx
Jul 26, 2026 — with coder-jdx
Maintainer

You must be logged in to vote
0 replies
Answer selected by muzimuzhi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants