diff --git a/src/createInstantSearchApp.js b/src/createInstantSearchApp.js index af7629fa7..f5b793106 100755 --- a/src/createInstantSearchApp.js +++ b/src/createInstantSearchApp.js @@ -12,6 +12,8 @@ const installDependencies = require('../tasks/installDependencies'); const { checkAppName, checkAppPath, + getOptionsFromArguments, + isQuestionAsked, isYarnAvailable, getLatestInstantSearchVersion, } = require('./utils'); @@ -19,6 +21,7 @@ const { version } = require('../package.json'); let cdPath; let appPath; +let options = {}; program .version(version) @@ -31,8 +34,11 @@ program '--main-attribute ', 'The main searchable attribute of your index' ) - .action(dest => { + .option('--template