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) {
}
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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment