Skip to content
Snippets Groups Projects
Commit 4b61f8e6 authored by Rohith Jayawardene's avatar Rohith Jayawardene Committed by GitHub
Browse files

Resources Fix CLI (#171)

- fixing the --resources cli option
parent ec229173
No related branches found
No related tags found
No related merge requests found
...@@ -196,8 +196,8 @@ func parseCLIOptions(cx *cli.Context, config *Config) (err error) { ...@@ -196,8 +196,8 @@ func parseCLIOptions(cx *cli.Context, config *Config) (err error) {
} }
mergeMaps(config.Headers, headers) mergeMaps(config.Headers, headers)
} }
if cx.IsSet("resource") { if cx.IsSet("resources") {
for _, x := range cx.StringSlice("resource") { for _, x := range cx.StringSlice("resources") {
resource, err := newResource().parse(x) resource, err := newResource().parse(x)
if err != nil { if err != nil {
return fmt.Errorf("invalid resource %s, %s", x, err) return fmt.Errorf("invalid resource %s, %s", x, err)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment