diff --git a/cmd/changelog.go b/cmd/changelog.go index c992c7e..843ee20 100644 --- a/cmd/changelog.go +++ b/cmd/changelog.go @@ -21,7 +21,7 @@ var changelogCmd = &cobra.Command{ func init() { changelogCmd.Flags().String("since", "", "Start from this tag/ref (default: previous tag)") - changelogCmd.Flags().StringP("version", "v", "", "Override version for header (default: latest git tag)") + changelogCmd.Flags().StringP("version", "V", "", "Override version for header (default: latest git tag)") changelogCmd.Flags().Bool("stdout", false, "Print ONLY the new section (ideal for Gitea release notes)") changelogCmd.Flags().Bool("commit", false, "After writing, remind to run grokkit commit") rootCmd.AddCommand(changelogCmd) diff --git a/cmd/changelog_test.go b/cmd/changelog_test.go index a4f71b6..71b243a 100644 --- a/cmd/changelog_test.go +++ b/cmd/changelog_test.go @@ -95,7 +95,7 @@ func TestChangelogCmd_Flags(t *testing.T) { versionFlag := changelogCmd.Flags().Lookup("version") require.NotNil(t, versionFlag) - assert.Equal(t, "v", versionFlag.Shorthand) + assert.Equal(t, "V", versionFlag.Shorthand) commitFlag := changelogCmd.Flags().Lookup("commit") require.NotNil(t, commitFlag)