fix(nuxi): don't clear screen on nuxi dev --help (#3372)

This commit is contained in:
Daniel Roe 2022-02-24 17:18:13 +00:00 committed by GitHub
parent bb31df9944
commit 271289c4d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ async function _main () {
// @ts-ignore
const command = args._.shift() || 'usage'
showBanner(command === 'dev' && args.clear !== false)
showBanner(command === 'dev' && args.clear !== false && !args.help)
if (!(command in commands)) {
console.log('\n' + red('Invalid command ' + command))