diff --git a/cmd/root.go b/cmd/root.go index ba235d70449..b9022d12275 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -20,7 +20,7 @@ var packageName string var modelPackageName string func init() { - rootCmd.PersistentFlags().StringVar(&configFilename, "config", "", "the file to configuration to") + rootCmd.PersistentFlags().StringVarP(&configFilename, "config", "c", "", "the file to configuration to") rootCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "show logs") rootCmd.PersistentFlags().StringVar(&output, "out", "", "the file to write to") diff --git a/example/todo/todo.go b/example/todo/todo.go index edcfee356e3..a3667e7e76d 100644 --- a/example/todo/todo.go +++ b/example/todo/todo.go @@ -1,4 +1,4 @@ -//go:generate gorunpkg github.com/vektah/gqlgen -out generated.go +//go:generate gorunpkg github.com/vektah/gqlgen --out generated.go package todo diff --git a/test/resolvers_test.go b/test/resolvers_test.go index 7f4c04bf615..9aacd7a050a 100644 --- a/test/resolvers_test.go +++ b/test/resolvers_test.go @@ -1,4 +1,4 @@ -//go:generate gorunpkg github.com/vektah/gqlgen -config config.yaml +//go:generate gorunpkg github.com/vektah/gqlgen --config config.yaml package test