From 1dc894087c636a3d0e329f8b637b5bf62d34168d Mon Sep 17 00:00:00 2001 From: Anderson Mesquita Date: Fri, 18 Dec 2015 12:28:02 -0500 Subject: [PATCH] Rename noConsole to hideConsole This avoids the double negative of having noConsole = false to represent not hiding the console. It is also consistent with the action performed by osutils. --- cmd/syncthing/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index 860ce194..1ea2880e 100644 --- a/cmd/syncthing/main.go +++ b/cmd/syncthing/main.go @@ -199,7 +199,7 @@ type RuntimeOptions struct { upgradeTo string noBrowser bool browserOnly bool - noConsole bool + hideConsole bool logFile string auditEnabled bool verbose bool @@ -263,7 +263,7 @@ func parseCommandLineOptions() RuntimeOptions { flag.StringVar(&options.logFile, "logfile", options.logFile, "Log file name (use \"-\" for stdout)") if runtime.GOOS == "windows" { // Allow user to hide the console window - flag.BoolVar(&options.noConsole, "no-console", false, "Hide console window") + flag.BoolVar(&options.hideConsole, "no-console", false, "Hide console window") } longUsage := fmt.Sprintf(extraUsage, baseDirs["config"], debugFacilities()) @@ -286,7 +286,7 @@ func main() { os.Setenv("STGUIAPIKEY", options.guiAPIKey) } - if options.noConsole { + if options.hideConsole { osutil.HideConsole() }