Skip to content
Discussion options

You must be logged in to vote

Recipe parameters work with shebang recipes too: https://just.systems/man/en/recipe-parameters.html

If you specifically want to use the shebang recipe interpreter's facility for accessing arguments, you can use positional-arguments:

[positional-arguments]
test_deno *args:
  #!/usr/bin/env -S deno run
  console.log(Deno.args[0])

(the recipe parameter does not necessarily need to be the variadic *args, it will work with any set of recipe parameters you specify)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@char8x
Comment options

Answer selected by char8x
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