From ef544b64d7417aa58d41b50ec7f9b1134ca1d638 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 5 Dec 2017 13:24:45 -0800 Subject: [PATCH] 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 --- src/flag/flag.go | 5 +++-- 1 file 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 "--". -- 2.50.0