summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAlex Flint <[email protected]>2024-06-30 12:27:39 -0400
committerGitHub <[email protected]>2024-06-30 12:27:39 -0400
commit0cc152dce52a7a61cc3cd73d25eae82adad99807 (patch)
treee0b101002f87ab9c708f539ce2b9034ca1c1cca1 /README.md
parentb6422dcbc3ca07c96adfcab27e1f6b9a7af93160 (diff)
parentc087d7180231ea3cfc12a79ee091786ac9954e6a (diff)
Merge pull request #224 from hhromic/better-version-v2
Fix usage writing when using custom version flag
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 cac383f..4d23034 100644
--- a/README.md
+++ b/README.md
@@ -301,6 +301,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