diff --git a/src/apps/chifra/pkg/utils/is_permitted.go b/src/apps/chifra/pkg/utils/is_permitted.go index 18c0865a24..3e2220f5a5 100644 --- a/src/apps/chifra/pkg/utils/is_permitted.go +++ b/src/apps/chifra/pkg/utils/is_permitted.go @@ -3,6 +3,7 @@ package utils import "os" func IsPermitted() bool { + isVersion := false isStatus := false isConfig := false hasPaths := false @@ -17,6 +18,8 @@ func IsPermitted() bool { isConfig = true } else if arg == "--paths" { hasPaths = true + } else if arg == "--version" || arg == "version" { + isVersion = true } else if arg == "edit" { hasEdit = true } else if arg != "--verbose" { @@ -27,6 +30,10 @@ func IsPermitted() bool { } } + if isVersion { + return true + } + if isStatus && cnt == 2 { return true }