Improve recipes with parameters section of readme (#41)

This commit is contained in:
Casey Rodarmor 2016-11-11 13:31:26 -08:00 committed by GitHub
parent ef39637c00
commit f071f75c67

View File

@ -166,7 +166,7 @@ $ just --evaluate
raw-string = "\t\n\r\"\\" raw-string = "\t\n\r\"\\"
``` ```
Recipes may take arguments. Here recipe `build` takes an argument called `target`: Recipes may have parameters. Here recipe `build` has a parameter called `target`:
```make ```make
build target: build target:
@ -174,7 +174,9 @@ build target:
cd {{target}} && make cd {{target}} && make
``` ```
Only one recipe that takes arguments may given on the command line, and other recipes may not depend on it. To pass arguments put them after the recipe name: Recipes with parameters have limitations. Other recipes may not depend on them, and only one recipe with parameters may be given on the command line.
To pass arguments, put them after the recipe name:
```sh ```sh
$ just build my-awesome-project $ just build my-awesome-project