From 9fc3262bbb91f5018b9203ffec08ebbd6f2838c5 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 11 Dec 2017 20:12:36 +0100 Subject: [PATCH] Add variadic parameter with default argument example (#285) --- README.asc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.asc b/README.asc index 76415c1..bad48b9 100644 --- a/README.asc +++ b/README.asc @@ -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