From 68afc897d6eb3cb64f1e59b019c5e4a8a158874e Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Thu, 15 May 2014 00:42:40 -0300 Subject: [PATCH] Quote default flag parameters --- cmd/syncthing/usage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/syncthing/usage.go b/cmd/syncthing/usage.go index cc4a8431b..3f0b9562b 100644 --- a/cmd/syncthing/usage.go +++ b/cmd/syncthing/usage.go @@ -32,7 +32,7 @@ func usageFor(fs *flag.FlagSet, usage string, extra string) func() { var opt = " -" + f.Name if f.DefValue != "false" { - opt += "=" + f.DefValue + opt += "=" + fmt.Sprintf("%q", f.DefValue) } options = append(options, []string{opt, f.Usage})