From 0a759c6c0adbd21e30f8c446a44ad6bf6d2f065c Mon Sep 17 00:00:00 2001 From: Hayden Bleasel Date: Tue, 10 Dec 2024 16:39:16 -0500 Subject: [PATCH] Add help command --- scripts/init.mjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/init.mjs b/scripts/init.mjs index 38f0be73..4760e3b3 100755 --- a/scripts/init.mjs +++ b/scripts/init.mjs @@ -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 ')