Skip to content

Commit

Permalink
feat(cli): display help message when no command is matched (#9351)
Browse files Browse the repository at this point in the history
* feat(cli): display help message when no command is matched

* style: add new line
  • Loading branch information
Slowlife01 authored Mar 3, 2025
1 parent 3be9513 commit 8d12d97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,7 @@ cli.help()
cli.version(cliPackageJson.version)

cli.parse()

if (!cli.matchedCommand && !cli.options.help && !cli.options.version) {
cli.outputHelp()
}

0 comments on commit 8d12d97

Please sign in to comment.