Add variadic parameter with default argument example (#285)

This commit is contained in:
Casey Rodarmor 2017-12-11 20:12:36 +01:00 committed by GitHub
parent edbc1ae175
commit 9fc3262bbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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