Add variadic parameter with default argument example (#285)
This commit is contained in:
parent
edbc1ae175
commit
9fc3262bbb
@ -399,6 +399,13 @@ FAQ.md 100% 1831 1.8KB/s 00:00
|
||||
GRAMMAR.md 100% 1666 1.6KB/s 00:00
|
||||
```
|
||||
|
||||
A variadic parameter with a default argument will accept zero or more arguments:
|
||||
|
||||
```make
|
||||
commit MESSAGE +FLAGS='':
|
||||
git commit {{FLAGS}} -m "{{MESSAGE}}"
|
||||
```
|
||||
|
||||
`{{...}}` substitutions may need to be quoted if they contains spaces. For example, if you have the following recipe:
|
||||
|
||||
```make
|
||||
|
Loading…
Reference in New Issue
Block a user