mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-15 03:36:33 +03:00
Add version and debug long flag names
This commit is contained in:
parent
01acd9a90e
commit
8cba657773
@ -66,8 +66,8 @@ Usage:
|
||||
pgweb [OPTIONS]
|
||||
|
||||
Application Options:
|
||||
-v Print version
|
||||
-d Enable debugging mode (false)
|
||||
-v, --version Print version
|
||||
-d, --debug Enable debugging mode (false)
|
||||
--url= Database connection string
|
||||
--host= Server hostname or IP (localhost)
|
||||
--port= Server port (5432)
|
||||
|
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