From 506de19d394db44df1b36eb9b3321b509d5964a5 Mon Sep 17 00:00:00 2001 From: Patrick O'brien Date: Tue, 16 Aug 2016 23:25:31 +1000 Subject: [PATCH] Fix exclude list, now a slice --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 7852021..5a314e4 100644 --- a/main.go +++ b/main.go @@ -62,7 +62,7 @@ func main() { // Set up the cobra root command flags rootCmd.PersistentFlags().StringP("output", "o", "models", "The name of the folder to output to") rootCmd.PersistentFlags().StringP("pkgname", "p", "models", "The name you wish to assign to your generated package") - rootCmd.PersistentFlags().StringP("exclude", "x", "", "Tables to be excluded from the generated package") + rootCmd.PersistentFlags().StringSliceP("exclude", "x", nil, "Tables to be excluded from the generated package") viper.SetDefault("postgres.sslmode", "require") viper.SetDefault("postgres.port", "5432")