Add --tests-also for fetch-params

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera
2019-11-14 02:15:33 +01:00
parent 3e22712f2d
commit bc3dac0426
7 changed files with 12 additions and 9 deletions
+6 -1
View File
@@ -14,9 +14,14 @@ var fetchParamCmd = &cli.Command{
Name: "only-verify-keys",
Usage: "only download the verify keys",
},
&cli.BoolFlag{
Name: "tests-also",
Usage: "download params used for tests",
},
},
Action: func(cctx *cli.Context) error {
if err := build.GetParams(!cctx.Bool("only-verify-keys")); err != nil {
err := build.GetParams(!cctx.Bool("only-verify-keys"), cctx.Bool("tests-also"))
if err != nil {
return xerrors.Errorf("fetching proof parameters: %w", err)
}