From f7df57b646d6412c1346e85c3a7353a8df41afc6 Mon Sep 17 00:00:00 2001 From: Sebastian Gassner Date: Thu, 30 Jun 2022 13:07:51 +0200 Subject: [PATCH] updating example in docs about double dashes Updating examples, to show that double dashes are also permitted. This has been easy to miss previously. --- src/flag/flag.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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