Add strict matching which disables automatic incrementation of the patch until the trigger word is found.

This commit is contained in:
2021-05-15 18:54:48 +01:00
parent a9949ee255
commit 9c0e4171ae
4 changed files with 79 additions and 32 deletions
+2
View File
@@ -60,6 +60,7 @@ var (
varShowVersion bool
varDebug bool
varUpdate bool
varStrict bool
)
func init() {
@@ -72,5 +73,6 @@ func init() {
rootCmd.PersistentFlags().BoolVarP(&varShowVersion, "version", "v", false, "Display version")
rootCmd.PersistentFlags().BoolVarP(&varDebug, "debug", "d", false, "Enable debug mode")
rootCmd.PersistentFlags().BoolVarP(&varUpdate, "update", "u", false, "Update binary with latest")
rootCmd.PersistentFlags().BoolVarP(&varStrict, "strict", "s", false, "Strict matching")
}
}