Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed src/.DS_Store
Binary file not shown.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your catch!
This line is ok ;)

if (templateArg) {
return getTemplatesPath(templateArg)
}
Expand All @@ -48,6 +48,7 @@ async function getTemplateOption() {
if (template) {
return getTemplatesPath()
}

return null
}

Expand Down