Skip to content

Commit

Permalink
Swapping {w,W} short flags
Browse files Browse the repository at this point in the history
  • Loading branch information
kenshaw committed Mar 31, 2024
1 parent fc5109d commit 4a456c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ func Run(ctx context.Context, cliargs []string) error {
flags.VarP(commandOrFile{args, true}, "command", "c", "run only single command (SQL or internal) and exit")
flags.VarP(commandOrFile{args, false}, "file", "f", "execute commands from file and exit")
// general flags
flags.BoolVarP(&args.NoPassword, "no-password", "W", false, "never prompt for password")
flags.BoolVarP(&args.NoPassword, "no-password", "w", false, "never prompt for password")
flags.BoolVarP(&args.NoRC, "no-rc", "X", false, "do not read start up file (aliases: --no-psqlrc --no-usqlrc)")
flags.BoolVar(&args.NoRC, "no-psqlrc", false, "do not read startup file")
flags.BoolVar(&args.NoRC, "no-usqlrc", false, "do not read startup file")
flags.VarP(filevar{&args.Out}, "out", "o", "output file")
flags.BoolVarP(&args.ForcePassword, "password", "w", false, "force password prompt (should happen automatically)")
flags.BoolVarP(&args.ForcePassword, "password", "W", false, "force password prompt (should happen automatically)")
flags.BoolVarP(&args.SingleTransaction, "single-transaction", "1", false, "execute as a single transaction (if non-interactive)")

ss := func(v *[]string, name, short, usage, placeholder string, vals ...string) {
Expand Down

0 comments on commit 4a456c1

Please sign in to comment.