Skip to content

Commit 3af7242

Browse files
authoredJul 2, 2024··
fix: pre-release flag only worked on the pr command (#160)
1 parent 5fedd09 commit 3af7242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var (
1818
currentCmd = app.Command("current", "prints current version").Alias("c")
1919
preReleaseCmd = app.Command("prerelease", "new pre release version based on the next version calculated from git log").
2020
Alias("pr")
21-
preRelease = preReleaseCmd.Flag("pre-release", "adds a pre-release suffix to the version, without the semver mandatory dash prefix").
21+
preRelease = app.Flag("pre-release", "adds a pre-release suffix to the version, without the semver mandatory dash prefix").
2222
String()
2323
pattern = app.Flag("pattern", "limits calculations to be based on tags matching the given pattern").String()
2424
prefix = app.Flag("prefix", "set a custom prefix").Default("v").String()

0 commit comments

Comments
 (0)
Please sign in to comment.