mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +00:00
fix(nuxi): show an error if no value is supplied for the --template
flag (#9946)
This commit is contained in:
parent
b7d0f52de6
commit
da38c62000
@ -18,6 +18,11 @@ export default defineNuxtCommand({
|
||||
// Clone template
|
||||
const template = args.template || args.t || 'v3'
|
||||
|
||||
if (typeof template === 'boolean') {
|
||||
consola.error('Please specify a template!')
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
const t = await downloadTemplate(template, {
|
||||
dir: args._[0] as string,
|
||||
force: args.force,
|
||||
|
Loading…
Reference in New Issue
Block a user