Skip to content

Commit 9d65690

Browse files
author
Ramu Narasinga
committed
added comments for Part 1.2
1 parent edac99a commit 9d65690

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

create-next-app/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,13 @@ const onPromptState = (state: {
4242
// import packageJson from './package.json'
4343
// I personally never had to import anything from package.json, I guess you can do it.
4444
const program = new Commander.Command(packageJson.name)
45+
// https://www.npmjs.com/package/commander#version-option
4546
.version(packageJson.version)
47+
// https://www.npmjs.com/package/commander#command-arguments
4648
.arguments('<project-directory>')
49+
// https://www.npmjs.com/package/commander#usage
4750
.usage(`${green('<project-directory>')} [options]`)
51+
// https://www.npmjs.com/package/commander#action-handler
4852
.action((name) => {
4953
projectPath = name
5054
})

0 commit comments

Comments
 (0)