updating example in docs about double dashes

Updating examples, to show that double dashes are also permitted.

This has been easy to miss previously.
This commit is contained in:
Sebastian Gassner 2022-06-30 13:07:51 +02:00 committed by GitHub
parent 17083a2fdf
commit f7df57b646
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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