Fix exclude list, now a slice

This commit is contained in:
Patrick O'brien 2016-08-16 23:25:31 +10:00
parent 9d6de3ba68
commit 506de19d39

View file

@ -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")