Commit ef544b64 authored by Ian Lance Taylor's avatar Ian Lance Taylor

flag: clarify comment to avoid shell syntax confusion

Updates #22961

Change-Id: Ib2f41aefb4f6470598d8637611da5491156ea840
Reviewed-on: https://go-review.googlesource.com/82015Reviewed-by: default avatarRob Pike <r@golang.org>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent ffd79b31
...@@ -43,8 +43,9 @@ ...@@ -43,8 +43,9 @@
The last form is not permitted for boolean flags because the The last form is not permitted for boolean flags because the
meaning of the command meaning of the command
cmd -x * cmd -x *
will change if there is a file called 0, false, etc. You must where * is a Unix shell wildcard, will change if there is a file
use the -flag=false form to turn off a boolean flag. 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 Flag parsing stops just before the first non-flag argument
("-" is a non-flag argument) or after the terminator "--". ("-" is a non-flag argument) or after the terminator "--".
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment