From c087d7180231ea3cfc12a79ee091786ac9954e6a Mon Sep 17 00:00:00 2001 From: Hugo Hromic Date: Sat, 15 Jul 2023 15:12:58 +0100 Subject: [PATCH] Add note for version flag overriding to README --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index f105b17..c644227 100644 --- a/README.md +++ b/README.md @@ -284,6 +284,9 @@ $ ./example --version someprogram 4.3.0 ``` +> **Note** +> If a `--version` flag is defined in `args` or any subcommand, it overrides the built-in versioning. + ### Overriding option names ```go