Skip to content

Commit

Permalink
🐛 Use slice params instead of arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Jun 4, 2021
1 parent e6b5c2b commit 6c9c5eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/dump/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ func init() {
Command.Flags().BoolVar(&ifExists, "if-exists", true, "use IF EXISTS when dropping objects")
Command.Flags().BoolVarP(&clean, "clean", "c", true, "clean (drop) database objects before recreating")
Command.Flags().BoolVarP(&noOwner, "no-owner", "O", true, "skip restoration of object ownership in plain-text format")
Command.Flags().StringArrayVarP(&excludeTable, "exclude-table", "T", []string{}, "do NOT dump the specified table(s)")
Command.Flags().StringArrayVar(&excludeTableData, "exclude-table-data", []string{}, "do NOT dump data for the specified table(s)")
Command.Flags().StringSliceVarP(&excludeTable, "exclude-table", "T", []string{}, "do NOT dump the specified table(s)")
Command.Flags().StringSliceVar(&excludeTableData, "exclude-table-data", []string{}, "do NOT dump data for the specified table(s)")
}

func preRun(cmd *cobra.Command, args []string) (err error) {
Expand Down

0 comments on commit 6c9c5eb

Please sign in to comment.