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,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)

View File

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