aboutsummaryrefslogtreecommitdiff
path: root/src/flag
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2017-12-05 13:24:45 -0800
committerIan Lance Taylor <iant@golang.org>2017-12-06 04:36:03 +0000
commitef544b64d7417aa58d41b50ec7f9b1134ca1d638 (patch)
treeeb4e6b3d7cde58cd054d0e024bf0c704cd89dbcf /src/flag
parentffd79b310736d768593b207946744e94d918749a (diff)
downloadgo-ef544b64d7417aa58d41b50ec7f9b1134ca1d638.tar.gz
go-ef544b64d7417aa58d41b50ec7f9b1134ca1d638.zip
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 <r@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/flag')
-rw-r--r--src/flag/flag.go5
1 files changed, 3 insertions, 2 deletions
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 "--".