Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Positional arguments aren't populated with default arguments #809

Closed
casey opened this issue May 2, 2021 · 0 comments · Fixed by #810
Closed

Positional arguments aren't populated with default arguments #809

casey opened this issue May 2, 2021 · 0 comments · Fixed by #810
Labels

Comments

@casey
Copy link
Owner

casey commented May 2, 2021

I think I'm populating positional arguments only with the actual arguments that were passed, not defaults.

For example, with this justfile:

set positional-arguments

foo bar='baz':
 echo $1

You'll get this error if you don't pass bar:

$ just foo
foo: $1: unbound variable
@casey casey added the bug label May 2, 2021
@casey casey linked a pull request May 2, 2021 that will close this issue
@casey casey closed this as completed in #810 May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant