mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
Quote default flag parameters
This commit is contained in:
parent
ba58e95f6b
commit
68afc897d6
@ -32,7 +32,7 @@ func usageFor(fs *flag.FlagSet, usage string, extra string) func() {
|
|||||||
var opt = " -" + f.Name
|
var opt = " -" + f.Name
|
||||||
|
|
||||||
if f.DefValue != "false" {
|
if f.DefValue != "false" {
|
||||||
opt += "=" + f.DefValue
|
opt += "=" + fmt.Sprintf("%q", f.DefValue)
|
||||||
}
|
}
|
||||||
|
|
||||||
options = append(options, []string{opt, f.Usage})
|
options = append(options, []string{opt, f.Usage})
|
||||||
|
Loading…
Reference in New Issue
Block a user