Add note for version flag overriding to README

This commit is contained in:
Hugo Hromic 2023-07-15 15:12:58 +01:00
parent c992aa8627
commit c087d71802
No known key found for this signature in database
GPG Key ID: 5CAFA8074D3F443B
1 changed files with 3 additions and 0 deletions

View File

@ -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