Skip to content

Commit

Permalink
💬 Update help texts
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed May 22, 2021
1 parent 2b7307a commit b508912
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions cmd/dump/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ var (
)

func init() {
Command.Flags().StringVarP(&database, "dbname", "d", "db", "Database name to connect to")
Command.Flags().StringVarP(&username, "username", "U", "postgres", "Database username")
Command.Flags().StringVarP(&password, "password", "p", "", "Database password")
Command.Flags().StringVarP(&directory, "directory", "C", ".", "Directory to dump to")
Command.Flags().StringVarP(&database, "dbname", "d", "db", "database name to connect to")
Command.Flags().StringVarP(&username, "username", "U", "postgres", "database username")
Command.Flags().StringVarP(&password, "password", "p", "", "database password")
Command.Flags().StringVarP(&directory, "directory", "C", ".", "directory to dump to")

Command.Flags().BoolVar(&gzipFile, "gzip", false, "Gzip on disk")
Command.Flags().BoolVar(&gzipFile, "gzip", false, "gzip output file on disk")

Command.Flags().BoolVar(&ifExists, "if-exists", true, "use IF EXISTS when dropping objects")
Command.Flags().BoolVar(&clean, "clean", true, "clean (drop) database objects before recreating")
Expand Down
6 changes: 3 additions & 3 deletions cmd/exec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ var (
)

func init() {
Command.Flags().StringVarP(&database, "dbname", "d", "db", "Database name to connect to")
Command.Flags().StringVarP(&username, "username", "U", "postgres", "Database username")
Command.Flags().StringVarP(&password, "password", "p", "", "Database password")
Command.Flags().StringVarP(&database, "dbname", "d", "db", "database name to connect to")
Command.Flags().StringVarP(&username, "username", "U", "postgres", "database username")
Command.Flags().StringVarP(&password, "password", "p", "", "database password")
}

func run(cmd *cobra.Command, args []string) (err error) {
Expand Down
8 changes: 4 additions & 4 deletions cmd/restore/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ var (
)

func init() {
Command.Flags().StringVarP(&database, "dbname", "d", "db", "Database name to connect to")
Command.Flags().StringVarP(&username, "username", "U", "postgres", "Database username")
Command.Flags().StringVarP(&password, "password", "p", "", "Database password")
Command.Flags().StringVarP(&database, "dbname", "d", "db", "database name to connect to")
Command.Flags().StringVarP(&username, "username", "U", "postgres", "database username")
Command.Flags().StringVarP(&password, "password", "p", "", "database password")

Command.Flags().BoolVar(&singleTransaction, "single-transaction", true, "Restore with --single-transaction")
Command.Flags().BoolVar(&singleTransaction, "single-transaction", true, "execute as a single transaction")
}

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

0 comments on commit b508912

Please sign in to comment.