diff --git a/frontend/cli/cmd_new.go b/frontend/cli/cmd_new.go index 32dbc25f99..ff9be32d8e 100644 --- a/frontend/cli/cmd_new.go +++ b/frontend/cli/cmd_new.go @@ -39,7 +39,8 @@ func prepareNewCmd(ctx context.Context, k *kong.Kong, args []string) error { return nil } language := args[1] - if len(language) == 0 { + // Default to `new` command handler if no language is provided, or option is specified on `new` command. + if len(language) == 0 || language[0] == '-' { return nil }