1 |
|
2 |
|
3 | var program = require('commander');
|
4 |
|
5 | program
|
6 | .version('0.2.2')
|
7 | .command('init <project-directory>', 'initialize project')
|
8 | .command('node', 'initialize current directory as a node project')
|
9 | .command('gen [options', 'generate HTML from MD')
|
10 | .parse(process.argv);
|