Skip to content

How to create a task which uses all arguments from the command line and avoids splitting on spaces #2717

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

You must be logged in to vote

After reading about argument splitting in the just doco

Also mentioned in that page is positional-arguments, which if you don't want to enable that for the entire justfile, you can use the attribute to enable it only for that recipe:

[positional-arguments]
mydebugrun *paths:
    @mycommand --debug "$@"

Replies: 1 comment 1 reply

Comment options

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

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