Skip to content

Commit

Permalink
Merge pull request #565 from steebchen/next
Browse files Browse the repository at this point in the history
Fix cli config getters
  • Loading branch information
vektah committed Mar 4, 2019
2 parents 51266b8 + da12fd1 commit 0258e1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0258e1a

Please sign in to comment.