mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-15 11:52:12 +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]
|
pgweb [OPTIONS]
|
||||||
|
|
||||||
Application Options:
|
Application Options:
|
||||||
-v Print version
|
-v, --version Print version
|
||||||
-d Enable debugging mode (false)
|
-d, --debug Enable debugging mode (false)
|
||||||
--url= Database connection string
|
--url= Database connection string
|
||||||
--host= Server hostname or IP (localhost)
|
--host= Server hostname or IP (localhost)
|
||||||
--port= Server port (5432)
|
--port= Server port (5432)
|
||||||
|
4
main.go
4
main.go
@ -13,8 +13,8 @@ import (
|
|||||||
const VERSION = "0.3.0"
|
const VERSION = "0.3.0"
|
||||||
|
|
||||||
var options struct {
|
var options struct {
|
||||||
Version bool `short:"v" description:"Print version"`
|
Version bool `short:"v" long:"version" description:"Print version"`
|
||||||
Debug bool `short:"d" description:"Enable debugging mode" default:"false"`
|
Debug bool `short:"d" long:"debug" description:"Enable debugging mode" default:"false"`
|
||||||
Url string `long:"url" description:"Database connection string"`
|
Url string `long:"url" description:"Database connection string"`
|
||||||
Host string `long:"host" description:"Server hostname or IP" default:"localhost"`
|
Host string `long:"host" description:"Server hostname or IP" default:"localhost"`
|
||||||
Port int `long:"port" description:"Server port" default:"5432"`
|
Port int `long:"port" description:"Server port" default:"5432"`
|
||||||
|
Loading…
Reference in New Issue
Block a user