mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-14 19:21:46 +03:00
Add version and debug long flag names
This commit is contained in:
parent
01acd9a90e
commit
8cba657773
18
README.md
18
README.md
@ -66,15 +66,15 @@ Usage:
|
||||
pgweb [OPTIONS]
|
||||
|
||||
Application Options:
|
||||
-v Print version
|
||||
-d Enable debugging mode (false)
|
||||
--url= Database connection string
|
||||
--host= Server hostname or IP (localhost)
|
||||
--port= Server port (5432)
|
||||
--user= Database user (postgres)
|
||||
--db= Database name (postgres)
|
||||
--ssl= SSL option (disable)
|
||||
--listen= HTTP server listen port (8080)
|
||||
-v, --version Print version
|
||||
-d, --debug Enable debugging mode (false)
|
||||
--url= Database connection string
|
||||
--host= Server hostname or IP (localhost)
|
||||
--port= Server port (5432)
|
||||
--user= Database user (postgres)
|
||||
--db= Database name (postgres)
|
||||
--ssl= SSL option (disable)
|
||||
--listen= HTTP server listen port (8080)
|
||||
```
|
||||
|
||||
## Compile from source
|
||||
|
4
main.go
4
main.go
@ -13,8 +13,8 @@ import (
|
||||
const VERSION = "0.3.0"
|
||||
|
||||
var options struct {
|
||||
Version bool `short:"v" description:"Print version"`
|
||||
Debug bool `short:"d" description:"Enable debugging mode" default:"false"`
|
||||
Version bool `short:"v" long:"version" description:"Print version"`
|
||||
Debug bool `short:"d" long:"debug" description:"Enable debugging mode" default:"false"`
|
||||
Url string `long:"url" description:"Database connection string"`
|
||||
Host string `long:"host" description:"Server hostname or IP" default:"localhost"`
|
||||
Port int `long:"port" description:"Server port" default:"5432"`
|
||||
|
Loading…
Reference in New Issue
Block a user