diff --git a/src/index.ts b/src/index.ts index 00745d9..953126b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -174,6 +174,11 @@ export async function create({ alias: { h: 'help', d: 'dir', t: 'template' }, }); + // Set dir to first argument if not specified via `--dir` + if (!argv.dir && argv._[0]) { + argv.dir = argv._[0]; + } + console.log(''); logger.greet(`◆ Create ${upperFirst(name)} Project`);