From 4b61f8e62317dc25afd5c2f6ce5dba7db9d5ed84 Mon Sep 17 00:00:00 2001 From: Rohith Jayawardene <gambol99@gmail.com> Date: Mon, 9 Jan 2017 11:58:40 +0000 Subject: [PATCH] Resources Fix CLI (#171) - fixing the --resources cli option --- cli.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli.go b/cli.go index ccd10e9..a228a1a 100644 --- a/cli.go +++ b/cli.go @@ -196,8 +196,8 @@ func parseCLIOptions(cx *cli.Context, config *Config) (err error) { } mergeMaps(config.Headers, headers) } - if cx.IsSet("resource") { - for _, x := range cx.StringSlice("resource") { + if cx.IsSet("resources") { + for _, x := range cx.StringSlice("resources") { resource, err := newResource().parse(x) if err != nil { return fmt.Errorf("invalid resource %s, %s", x, err) -- GitLab