From 6c9c5eba2283384531e0a2811cf75aa1f6b328be Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Fri, 4 Jun 2021 10:17:28 -0500 Subject: [PATCH] :bug: Use slice params instead of arrays --- cmd/dump/dump.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/dump/dump.go b/cmd/dump/dump.go index bf5777e3..daedb7b8 100644 --- a/cmd/dump/dump.go +++ b/cmd/dump/dump.go @@ -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) {