Skip to content

Commit

Permalink
Also print version when running ./sail-operator version (#438)
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Lukša <mluksa@redhat.com>
  • Loading branch information
luksa authored Oct 18, 2024
1 parent bc065b5 commit 79dedbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func main() {
opts.BindFlags(flag.CommandLine)
flag.Parse()

if printVersion {
if printVersion || flag.NArg() > 0 && flag.Arg(0) == "version" {
fmt.Println(version.Info)
os.Exit(0)
}
Expand Down

0 comments on commit 79dedbc

Please sign in to comment.