From: Ian Lance Taylor Date: Tue, 5 Dec 2017 21:24:45 +0000 (-0800) Subject: flag: clarify comment to avoid shell syntax confusion X-Git-Tag: go1.10beta1~24 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ef544b64d7417aa58d41b50ec7f9b1134ca1d638;p=gostls13.git flag: clarify comment to avoid shell syntax confusion Updates #22961 Change-Id: Ib2f41aefb4f6470598d8637611da5491156ea840 Reviewed-on: https://go-review.googlesource.com/82015 Reviewed-by: Rob Pike Reviewed-by: Brad Fitzpatrick --- diff --git a/src/flag/flag.go b/src/flag/flag.go index d638e49b42..edde5282cf 100644 --- a/src/flag/flag.go +++ b/src/flag/flag.go @@ -43,8 +43,9 @@ The last form is not permitted for boolean flags because the meaning of the command cmd -x * - will change if there is a file called 0, false, etc. You must - use the -flag=false form to turn off a boolean flag. + where * is a Unix shell wildcard, will change if there is a file + called 0, false, etc. You must use the -flag=false form to turn + off a boolean flag. Flag parsing stops just before the first non-flag argument ("-" is a non-flag argument) or after the terminator "--".