Skip to content

Commit 1d4adeb

Browse files
Check sub-command for modernCLI only if specified (#184)
1 parent 41c71c2 commit 1d4adeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/modern/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func main() {
4949
// isFirstArgModernCliSubCommand is TEMPORARY code, to be removed when
5050
// we remove the Kong based CLI
5151
func isFirstArgModernCliSubCommand() (isNewCliCommand bool) {
52-
if len(os.Args) > 0 {
52+
if len(os.Args) > 1 {
5353
if rootCmd.IsValidSubCommand(os.Args[1]) {
5454
isNewCliCommand = true
5555
}

0 commit comments

Comments
 (0)