Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv committed Dec 2, 2021
1 parent be4b49d commit e067902
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,11 @@ const getQuestions = ({ appName }) => ({
);
},
validate(input) {
// if a config is given, path is optional
if (optionsFromArguments.config) {
return true;
}

const isValid = Boolean(input);
if (!isValid) {
console.log('template is required');
Expand Down

0 comments on commit e067902

Please sign in to comment.