#! /usr/bin/env node
'use strict';

var inquirer = require('inquirer');
var generator = Object.freeze(require('./generator'));
var questions = Object.freeze(require('./cli.config.json').questions);

/*
 * - Removes trailing slash
 * - Converts to lower case
 * - Trims
 */
// TODO: Add test for this
var formatString = function (val) {
    if (val.charAt(val.length - 1) === '/')
        val = val.substring(0, val.length - 1);
    return val.toLowerCase().trim();
};

var questionsWithFilter = questions.map(function(questionsObj) {
    if (questionsObj.filter === 'formatDist') {
        questionsObj.filter = formatString;
    }
    return questionsObj;
});

inquirer.prompt(questionsWithFilter).then(function(answers) {
    generator(answers);
});

@@ -65,16 +65,48 @@
 irer');%0A
+var list = require('cli-list');%0A
 var gene
@@ -222,16 +222,146 @@
 stions);
+%0Avar args = list(process.argv.slice(2));%0A%0Avar cliArguments = %7B%7D;%0Aif (args%5B0%5D.indexOf('-n') !== -1)%0A    cliArguments.dryRun = true;
 %0A%0A/*%0A * 
@@ -875,24 +875,58 @@
 (answers) %7B%0A
+    if (!cliArguments.dryRun)%0A    
     generato

Add dry run argument to CLI (-n)