Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(flag): add UseShortOptionHandling description #1953

Merged
merged 3 commits into from
Jul 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update flags.md
Co-authored-by: Anatoli Babenia <anatoli@rainforce.org>
BlackHole1 and abitrolly authored Jul 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 3bc73ed60bdb19a7692052db58e1ddbf9aaaf61a
4 changes: 2 additions & 2 deletions docs/v2/examples/flags.md
Original file line number Diff line number Diff line change
@@ -107,8 +107,8 @@ For bool flags you can specify the flag multiple times to get a count(e.g -v -v
> If you want to support the `-vvv` flag, you need to set `App.UseShortOptionHandling`.

<!-- {
"args": ["&#45;&#45;foo", "&#45;&#45;foo"],
"output": "count 2"
"args": ["&#45;&#45;foo", "&#45;&#45;foo", "&#45;fff", "&#45;f"],
"output": "count 6"
} -->
```go
package main