Skip to content

How to forward CLI arguments to a command #1673

Answered by laniakea64
johhnry asked this question in Q&A
Discussion options

You must be logged in to vote

You can give the recipe a variadic parameter:

run *args:
  node main.js {{args}}

If your additional command-line arguments contain whitespace or other characters that are special to the shell, see https://just.systems/man/en/chapter_58.html

Replies: 1 comment 1 reply

Comment options

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

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