From 090b964baa2e63135c1d0912889ee16e04665a98 Mon Sep 17 00:00:00 2001 From: Kevin Cui Date: Thu, 11 Jul 2024 11:04:51 +0800 Subject: [PATCH 1/3] docs(flag): add `UseShortOptionHandling` description Close: #1942 Signed-off-by: Kevin Cui --- docs/v2/examples/flags.md | 4 ++++ docs/v3/examples/flags.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/docs/v2/examples/flags.md b/docs/v2/examples/flags.md index eb87e6c6d4..0ef4c86ef4 100644 --- a/docs/v2/examples/flags.md +++ b/docs/v2/examples/flags.md @@ -104,6 +104,8 @@ See full list of flags at https://pkg.go.dev/github.com/urfave/cli/v2 For bool flags you can specify the flag multiple times to get a count(e.g -v -v -v or -vvv) +> If you want to support the `-vvv` flag, you need to set `App.UseShortOptionHandling`. + ```go package main From 3bc73ed60bdb19a7692052db58e1ddbf9aaaf61a Mon Sep 17 00:00:00 2001 From: Kevin Cui Date: Tue, 16 Jul 2024 18:03:43 +0800 Subject: [PATCH 3/3] Update flags.md Co-authored-by: Anatoli Babenia --- docs/v2/examples/flags.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/v2/examples/flags.md b/docs/v2/examples/flags.md index 0ef4c86ef4..2f16c4c3e8 100644 --- a/docs/v2/examples/flags.md +++ b/docs/v2/examples/flags.md @@ -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`. ```go package main