From 851ff4ce85602d118cb757b41f23d176b6599a51 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..6661fe3 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 above functionality. + ### Overriding option names ```go