summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorHugo Hromic <[email protected]>2023-07-15 15:12:58 +0100
committerHugo Hromic <[email protected]>2024-06-30 00:13:28 +0100
commitc087d7180231ea3cfc12a79ee091786ac9954e6a (patch)
tree85aea993b3282f5bef9e9086137da8900fdb9091 /README.md
parentc992aa8627a00b83eb94895173760b6be684d807 (diff)
Add note for version flag overriding to README
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 3 insertions, 0 deletions
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