From 6b51c4e744ca6fa3f708d18b15ccb025565001c0 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Tue, 19 Jan 2021 20:32:39 +0800 Subject: [PATCH] fix: Fix the issue of parameter case. --- src/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.ts b/src/cli.ts index c12f1205..c173e4d6 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -33,7 +33,7 @@ async function run(): Promise { argvs.appName = argvs._[0]; argvs.path = argvs.p = argvs.path || argvs.p || 'https://kktjs.github.io/zip/'; argvs.force = argvs.f = argvs.force || argvs.f || false; - argvs.example = argvs.e = argvs.example || argvs.e || 'basic'; + argvs.example = argvs.e = (argvs.example || argvs.e || 'basic').toLocaleLowerCase(); create(argvs, exampleHelp); } catch (error) { console.log(`\x1b[31m${error.message}\x1b[0m`);