mirror of
https://github.com/yannh/kubeconform.git
synced 2026-04-11 23:44:16 +00:00
Add -v to output version number
This commit is contained in:
parent
d536a659bd
commit
d63de52458
4 changed files with 25 additions and 1 deletions
|
|
@ -48,6 +48,8 @@ func realMain() int {
|
|||
cfg, out, err := config.FromFlags(os.Args[0], os.Args[1:])
|
||||
if cfg.Help {
|
||||
return 0
|
||||
} else if cfg.Version {
|
||||
return 0
|
||||
} else if out != "" {
|
||||
fmt.Println(out)
|
||||
return 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue