Skip to content

Commit

Permalink
rephrase remark about need of --justfile option
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbochi committed Jul 29, 2022
1 parent 9cf194c commit 967cb14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ default:
@just --justfile {{justfile()}} --list
```

Note that the `-f {{justfile()}}` above is needed to make sure the listed are from the current `justfile`. If you executed `just -f /path/to/justfile`, you could list recipes from somewhere else or get a `No justfile found` error.
Note that the `--justfile {{justfile()}}` above is needed to make sure the listed recipes are from the current `justfile`. Without it, if you executed `just -f /some/distant/justfile` or `just -f ./non-standard-justfile`, the plain `just --list` call in the `default` recipe would not use the file you provided. It would try to find a justfile in your current path, maybe even resulting in a `No justfile found` error.

The heading text can be customized with `--list-heading`:

Expand Down

0 comments on commit 967cb14

Please sign in to comment.