Skip to content

Commit

Permalink
Add variadic parameter with default argument example (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Dec 11, 2017
1 parent edbc1ae commit 9fc3262
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.asc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9fc3262

Please sign in to comment.