diff options
author | Ian Lance Taylor <iant@golang.org> | 2017-12-05 13:24:45 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2017-12-06 04:36:03 +0000 |
commit | ef544b64d7417aa58d41b50ec7f9b1134ca1d638 (patch) | |
tree | eb4e6b3d7cde58cd054d0e024bf0c704cd89dbcf /src/flag | |
parent | ffd79b310736d768593b207946744e94d918749a (diff) | |
download | go-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.go | 5 |
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 "--". |