Revert "Add a -v flag"

This reverts commit d8c95aaca8.
This commit is contained in:
Frank Denis 2018-04-06 03:03:27 +02:00
parent d8c95aaca8
commit 2d27eabf95
1 changed files with 2 additions and 3 deletions

View File

@ -153,8 +153,7 @@ func findConfigFile(configFile *string) (string, error) {
} }
func ConfigLoad(proxy *Proxy, svcFlag *string) error { func ConfigLoad(proxy *Proxy, svcFlag *string) error {
version_short := flag.Bool("v", false, "print current proxy version") version := flag.Bool("version", false, "print current proxy version")
version := flag.Bool("version", false, "alias for -v")
resolve := flag.String("resolve", "", "resolve a name using system libraries") resolve := flag.String("resolve", "", "resolve a name using system libraries")
list := flag.Bool("list", false, "print the list of available resolvers for the enabled filters") list := flag.Bool("list", false, "print the list of available resolvers for the enabled filters")
listAll := flag.Bool("list-all", false, "print the complete list of available resolvers, ignoring filters") listAll := flag.Bool("list-all", false, "print the complete list of available resolvers, ignoring filters")
@ -167,7 +166,7 @@ func ConfigLoad(proxy *Proxy, svcFlag *string) error {
if *svcFlag == "stop" || *svcFlag == "uninstall" { if *svcFlag == "stop" || *svcFlag == "uninstall" {
return nil return nil
} }
if *version || *version_short { if *version {
fmt.Println(AppVersion) fmt.Println(AppVersion)
os.Exit(0) os.Exit(0)
} }