Fix exclude list, now a slice
This commit is contained in:
parent
9d6de3ba68
commit
506de19d39
1 changed files with 1 additions and 1 deletions
2
main.go
2
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")
|
||||
|
|
Loading…
Reference in a new issue