js/Command.js
function () {
    // Defines all the commands with commander.
    program
        .version(env.version)
        .description('Tool for generating random numbers from a seed')
        .option('-s, --seed <seed>', 'specify the seed', Math.random())
        .option('-d, --decimal', 'generates a random decimal number', false)
        .option('-r, --range <a>,<b>', 'generates a random integer in the range inclusive', this.range)
        .parse(process.argv);

    // Calls the method that will check the commands
    // the user has entered.
    this.switchFunction();
}
function () {
    // Defines all the commands with commander.
    program
        .version(env.version)
        .description('Tool for generating random numbers from a seed')
        .option('-s, --seed <seed>', 'specify the seed', Math.random())
        .option('-d, --decimal', 'generates a random decimal number', false)
        .option('-r, --range <a>,<b>', 'generates a random integer in the range inclusive', this.range)
        .parse(process.argv);

    // Calls the method that will check the commands
    // the user has entered.
    this.switchFunction();
}
/*
Class that interprets command line commands
using commander.