#!/usr/bin/env node

const generate = require('./generator')
const program = require('commander')

program
    .version('1.0.0')
    .option('-w, --words [num]', 'number of words [2]', 2)
    .option('-n, --numbers', 'use numbers')
    .option('-a, --alliterative', 'use alliterative')
    .option('-o --output [output]', 'output type', /^(raw|dashed|spaced)$/i)
    .parse(process.argv)

let project_name = generate({words: program.words, number: program.numbers, alliterative: program.alliterative});

if (program.output == "dashed"){
    console.log(project_name.dashed);
} else if (program.output == "raw") {
    console.log(project_name.raw);
} else if (program.output == "spaced") {
    console.log(project_name.spaced);
} else {
    console.log(project_name);
}
#!/usr/bin/env node

const generate = require('./generator')
const program = require('commander')

program
    .version('1.0.0')
    .option('-w, --words [num]', 'number of words [2]', 2)
    .option('-n, --numbers', 'use numbers')
    .option('-a, --alliterative', 'use alliterative')
    .option('-o, --output [output]', 'output type [raw|dashed|spaced]', /^(raw|dashed|spaced)$/i)
    .parse(process.argv)

let project_name = generate({words: program.words, number: program.numbers, alliterative: program.alliterative});

if (program.output == "dashed"){
    console.log(project_name.dashed);
} else if (program.output == "raw") {
    console.log(project_name.raw);
} else if (program.output == "spaced") {
    console.log(project_name.spaced);
} else {
    console.log(project_name);
}
Update README for CLI options.
Update README for CLI options.
