Skip to content

Commit

Permalink
fix flag name conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Nov 12, 2024
1 parent 2ea817e commit d831cf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions versiondb/client/fixdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

const (
FlagDryRun = "dry-run"
FlagStore = "store"
FlagStore = "store-name"
)

func FixDataCmd(defaultStores []string) *cobra.Command {
Expand Down Expand Up @@ -54,6 +54,6 @@ func FixDataCmd(defaultStores []string) *cobra.Command {
}

cmd.Flags().Bool(FlagDryRun, false, "Dry run, do not write to the database, open the database in read-only mode.")
cmd.Flags().StringArray(FlagStore, nil, "Store names to fix, if not specified, all stores will be fixed.")
cmd.Flags().StringArray(FlagStore, []string{}, "Store names to fix, if not specified, all stores will be fixed.")
return cmd
}

0 comments on commit d831cf1

Please sign in to comment.