Add version and debug long flag names

This commit is contained in:
Dan Sosedoff 2014-10-27 15:50:57 -05:00
parent 01acd9a90e
commit 8cba657773
2 changed files with 11 additions and 11 deletions

View File

@ -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

View File

@ -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"`