File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ import (
32
32
"sigs.k8s.io/mdtoc/pkg/mdtoc"
33
33
"sigs.k8s.io/release-sdk/git"
34
34
"sigs.k8s.io/release-utils/log"
35
+ "sigs.k8s.io/release-utils/version"
35
36
)
36
37
37
38
type releaseNotesOptions struct {
@@ -156,8 +157,7 @@ func WriteReleaseNotes(releaseNotes *notes.ReleaseNotes) (err error) {
156
157
// versions of release-notes.
157
158
func hackDefaultSubcommand (cmd * cobra.Command ) {
158
159
if len (os .Args ) > 1 {
159
- // We accept --version and "completion"
160
- if os .Args [1 ] == "completion" || os .Args [1 ] == "--version" || os .Args [1 ] == "--help" {
160
+ if os .Args [1 ] == "completion" {
161
161
return
162
162
}
163
163
@@ -187,6 +187,8 @@ func main() {
187
187
addGenerate (cmd )
188
188
addCheckPR (cmd )
189
189
190
+ cmd .AddCommand (version .WithFont ("slant" ))
191
+
190
192
hackDefaultSubcommand (cmd )
191
193
192
194
if err := cmd .Execute (); err != nil {
You can’t perform that action at this time.
0 commit comments