mirror of
https://github.com/sigcn/pg.git
synced 2026-04-23 03:47:06 +08:00
cmd/pgcli: add usage
This commit is contained in:
@@ -39,6 +39,10 @@ func parseSecretKeyAndServer(flagSet *flag.FlagSet, args []string) (secretKey st
|
||||
return
|
||||
}
|
||||
|
||||
if server == "" {
|
||||
server = os.Getenv("PG_SERVER")
|
||||
}
|
||||
|
||||
if server == "" {
|
||||
err = fmt.Errorf("flag \"server\" is required")
|
||||
server = os.Getenv("PG_SERVER")
|
||||
|
||||
Reference in New Issue
Block a user