]> Cypherpunks.ru repositories - gostls13.git/commitdiff
flag: clarify comment to avoid shell syntax confusion
authorIan Lance Taylor <iant@golang.org>
Tue, 5 Dec 2017 21:24:45 +0000 (13:24 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 6 Dec 2017 04:36:03 +0000 (04:36 +0000)
Updates #22961

Change-Id: Ib2f41aefb4f6470598d8637611da5491156ea840
Reviewed-on: https://go-review.googlesource.com/82015
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/flag/flag.go

index d638e49b42618f84dc706e99a286b60fa195c039..edde5282cf444982699021c242dc0d8e339db60f 100644 (file)
@@ -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 "--".