Skip to content

Commit

Permalink
Add usage note to default list recipe (#1296)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbochi authored Aug 1, 2022
1 parent b6d0658 commit 051f438
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,8 @@ default:
@just --list
```

Note that you may need to add `--justfile {{justfile()}}` to the line above above. Without it, if you executed `just -f /some/distant/justfile -d .` or `just -f ./non-standard-justfile`, the plain `just --list` inside the recipe would not necessarily 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`:

```sh
Expand Down

0 comments on commit 051f438

Please sign in to comment.