Mention --list-heading
newline behavior (#860)
This commit is contained in:
parent
73337524b2
commit
39e76488b5
12
README.adoc
12
README.adoc
@ -355,7 +355,7 @@ default:
|
|||||||
The heading text can be customized with `--list-heading`:
|
The heading text can be customized with `--list-heading`:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ just --list --list-heading 'Cool stuff…\n'
|
$ just --list --list-heading $'Cool stuff…\n'
|
||||||
Cool stuff…
|
Cool stuff…
|
||||||
test
|
test
|
||||||
build
|
build
|
||||||
@ -370,6 +370,16 @@ Available recipes:
|
|||||||
····build
|
····build
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The argument to `--list-heading` replaces both the heading and the newline
|
||||||
|
following it, so it should contain a newline if non-empty. It works this way so
|
||||||
|
you can suppress the heading line entirely by passing the empty string:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ just --list --list-heading ''
|
||||||
|
test
|
||||||
|
build
|
||||||
|
```
|
||||||
|
|
||||||
=== Aliases
|
=== Aliases
|
||||||
|
|
||||||
Aliases allow recipes to be invoked with alternative names:
|
Aliases allow recipes to be invoked with alternative names:
|
||||||
|
Loading…
Reference in New Issue
Block a user