diff --git a/cmd/gen.go b/cmd/gen.go index 5613ee31ee9..c69858b44b0 100644 --- a/cmd/gen.go +++ b/cmd/gen.go @@ -20,7 +20,7 @@ var genCmd = cli.Command{ Action: func(ctx *cli.Context) { var cfg *config.Config var err error - if configFilename := ctx.String("gen"); configFilename != "" { + if configFilename := ctx.String("config"); configFilename != "" { cfg, err = config.LoadConfig(configFilename) if err != nil { fmt.Fprintln(os.Stderr, err.Error()) diff --git a/cmd/init.go b/cmd/init.go index 664c523b780..e07bed97086 100644 --- a/cmd/init.go +++ b/cmd/init.go @@ -83,7 +83,7 @@ func GenerateGraphServer(cfg *config.Config, serverFilename string) { func initConfig(ctx *cli.Context) *config.Config { var cfg *config.Config var err error - configFilename := ctx.String("cfg") + configFilename := ctx.String("config") if configFilename != "" { cfg, err = config.LoadConfig(configFilename) } else {