[x] I have commented on the issue above and discussed the intended changes
[x] A maintainer has signed off on the changes and the issue was assigned to me
[x] All newly added code is adequately covered by tests
[x] All existing tests are still running without errors
[x] The documentation was modified to reflect the changes OR no documentation changes are required.
Changes
We added an automatic version option in 0.49 with good intentions, but we forgot that people might already use --version as an option for a root command.
This PR makes -v|--version completely opt-in using config.SetApplicationVersion(..) or config.UseAssemblyInformationalVersion().
Fixes #1530
Changes
We added an automatic version option in 0.49 with good intentions, but we forgot that people might already use
--version
as an option for a root command.This PR makes
-v|--version
completely opt-in usingconfig.SetApplicationVersion(..)
orconfig.UseAssemblyInformationalVersion()
.