diff --git a/cmd/modern/main.go b/cmd/modern/main.go index 9ff912d1..a4c9ea13 100644 --- a/cmd/modern/main.go +++ b/cmd/modern/main.go @@ -49,7 +49,7 @@ func main() { // isFirstArgModernCliSubCommand is TEMPORARY code, to be removed when // we remove the Kong based CLI func isFirstArgModernCliSubCommand() (isNewCliCommand bool) { - if len(os.Args) > 0 { + if len(os.Args) > 1 { if rootCmd.IsValidSubCommand(os.Args[1]) { isNewCliCommand = true }