diff --git a/src/.DS_Store b/src/.DS_Store deleted file mode 100644 index 4e70b01..0000000 Binary files a/src/.DS_Store and /dev/null differ diff --git a/src/index.js b/src/index.js index 5c0c528..59c4e0f 100644 --- a/src/index.js +++ b/src/index.js @@ -32,7 +32,7 @@ async function getTemplatesPath(templateName = null) { } async function getTemplateOption() { - const templateArg = args.t || args.template + const templateArg = config.t || config.template || config.templateName if (templateArg) { return getTemplatesPath(templateArg) } @@ -48,6 +48,7 @@ async function getTemplateOption() { if (template) { return getTemplatesPath() } + return null }