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