-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcli.js
36 lines (29 loc) · 929 Bytes
/
cli.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env node
var program = require('commander');
// program
// .version('0.1.0')
// .option('-p, --peppers', 'Add peppers')
// .option('-P, --pineapple', 'Add pineapple')
// .option('-b, --bbq-sauce', 'Add bbq sauce')
// .option('-c, --cheese [type]', 'Add the specified type of cheese [marble]', 'marble')
// .parse(process.argv);
// console.log('you ordered a pizza with:');
// if (program.peppers) console.log(' - peppers');
// if (program.pineapple) console.log(' - pineapple');
// if (program.bbqSauce) console.log(' - bbq');
// console.log(' - %s cheese', program.cheese);
program
.command('tokenizer <latex>')
.alias('t')
.description('tokenizer the latex')
.action(command => {
console.log(command)
})
program
.version('0.1.0')
.usage('<command> [options]')
.parse(process.argv)
// if (program.tokenizer) {
// console.log(program.tokenizer)
// }
// console.log(program)