#!/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);
}
@@ -294,16 +294,17 @@
 tion('-o
+,
  --outpu
@@ -328,16 +328,36 @@
 put type
+ %5Braw%7Cdashed%7Cspaced%5D
 ', /%5E(ra

Update README for CLI options.