diff --git a/cli.go b/cli.go
index ccd10e9c8a699e2b66225c39ec40d6bbdc0e4e5a..a228a1a17ddd46a854e41e05d626fb8d8a1a99a2 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)