From 88381e2b427d8852a77ae4be3a5381d649ebf935 Mon Sep 17 00:00:00 2001 From: Peter Schultz Date: Thu, 21 Dec 2017 13:59:57 +0100 Subject: [PATCH] Actually respect -version option Accept -version flag, as shown in the usage message. Do this in addition to --version, to not break compatibility. --- config/load.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/load.go b/config/load.go index 66cd3e448..fc45ef8a7 100644 --- a/config/load.go +++ b/config/load.go @@ -59,7 +59,7 @@ func parse(args []string) (cmdline []string, path string, version bool, err erro switch { // version flag - case arg == "-v" || arg == "--version": + case arg == "-v" || arg == "-version" || arg == "--version": return nil, "", true, nil // config file without '='