We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb6a530 commit 7637cddCopy full SHA for 7637cdd
2 files changed
defs.go
@@ -64,8 +64,7 @@ func NewVersion(cmd *Command, opts ...Option) error {
64
Special(special),
65
Exec(func(ctx context.Context) error {
66
c, _ := Ctx(ctx)
67
- _ = DefaultVersion(c)
68
- return ErrExit
+ return DefaultVersion(c)
69
}),
70
)...)
71
}
ox.go
@@ -84,7 +84,7 @@ var (
84
if w == nil {
85
w = os.Stdout
86
87
- fmt.Fprintln(w, name, ver)
+ _, _ = fmt.Fprintln(w, name, ver)
88
return ErrExit
89
90
// DefaultVersionMapper maps the passed name, version.
0 commit comments