batch/batch.manager.js
function processCommandLine() {
        if (commander.list) {
            listApps();
            process.exit(0);
        }

        if (!commander.app) {
            commander.help();
        }

        commander.endDate = commander.runDate ? moment(commander.runDate, 'MM/DD/YYYY').toDate() : new Date();
        commander.startDate = moment(commander.endDate).subtract(commander.runDays, 'days').toDate();
        commander.startDate.setHours(0, 0, 0, 0);
    }
function processCommandLine() {
        if (commander.list) {
            listApps();
            process.exit(0);
        }

        if (!commander.app) {
            commander.help();
        }

        commander.endDate = commander.runDate ? moment(commander.runDate, 'MM/DD/YYYY').toDate() : new Date();
        commander.startDate = moment(commander.endDate).subtract(commander.runDays, 'days').toDate();
        commander.startDate.setHours(0, 0, 0, 0);
    }
function processCommandLine ( ) { if ( commander . list ) { listApps ( ) ; process . exit ( 0 ) ; } if ( ! commander . app ) { commander . help ( ) ; } commander . endDate = commander . runDate ? moment ( commander . runDate , 'MM/DD/YYYY' ) . toDate ( ) : new Date ( ) ; commander . startDate = moment ( commander . endDate ) . subtract ( commander . runDays , 'days' ) . toDate ( ) ; commander . startDate . setHours ( 0 , 0 , 0 , 0 ) ; }
Process the command line using commander
Process the command line using commander