Skip to content

Commit

Permalink
Add help command
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenbleasel committed Dec 10, 2024
1 parent c43ccca commit 0a759c6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/init.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ const internalContentFiles = [
const allInternalContent = [...internalContentDirs, ...internalContentFiles];
const program = new Command(packageJson.name);

program.version(
packageJson.version,
'-v, --version',
'Output the current version of create-next-app.'
);

program.helpOption('-h, --help', 'Display this help message.');

program
.command('init <name>')
Expand Down

0 comments on commit 0a759c6

Please sign in to comment.