aboutsummaryrefslogtreecommitdiff
path: root/src/flag
diff options
context:
space:
mode:
authorSebastian Gassner <sepastian@users.noreply.github.com>2022-06-30 13:37:04 +0000
committerGopher Robot <gobot@golang.org>2022-07-01 15:37:46 +0000
commit9a4d5357f40c367fcad279184f245290ba0a8fb9 (patch)
tree3bf9c226be706ee1c3eab2d2b8329ed334525276 /src/flag
parentc847a2c9f024f47eee25c132f2d80e7037adea36 (diff)
downloadgo-9a4d5357f40c367fcad279184f245290ba0a8fb9.tar.gz
go-9a4d5357f40c367fcad279184f245290ba0a8fb9.zip
flag: highlight support for double dashes in docs
Updating examples, to show that double dashes are also permitted. This has been easy to miss previously. Change-Id: Ib67b4e39fea90ef4cb9e894709c53baedfc18fc2 GitHub-Last-Rev: f7df57b646d6412c1346e85c3a7353a8df41afc6 GitHub-Pull-Request: golang/go#53628 Reviewed-on: https://go-review.googlesource.com/c/go/+/415374 Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: David Chase <drchase@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/flag')
-rw-r--r--src/flag/flag.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/flag/flag.go b/src/flag/flag.go
index a0762441a5..9abf8d769e 100644
--- a/src/flag/flag.go
+++ b/src/flag/flag.go
@@ -49,10 +49,11 @@ The arguments are indexed from 0 through flag.NArg()-1.
The following forms are permitted:
-flag
+ --flag // double dashes are also permitted
-flag=x
-flag x // non-boolean flags only
-One or two minus signs may be used; they are equivalent.
+One or two dashes may be used; they are equivalent.
The last form is not permitted for boolean flags because the
meaning of the command