Skip to content

Commit

Permalink
feat(cli): display help message when no command is matched
Browse files Browse the repository at this point in the history
  • Loading branch information
Slowlife01 committed Feb 28, 2025
1 parent 5322c79 commit 15e4d59
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()
}

Check failure

Code scanning / ESLint

Require or disallow newline at the end of files Error

Newline required at end of file but not found.

0 comments on commit 15e4d59

Please sign in to comment.