1 | #!/usr/bin/env node
|
2 |
|
3 | var path = require('path')
|
4 | , lib = GLOBAL.lib = require(path.join(__dirname, '..', 'lib'))
|
5 | , program = require('commander');
|
6 |
|
7 | program.version(lib.pkg.version);
|
8 |
|
9 | program.on('--help', function() {
|
10 | console.log(' Example:');
|
11 | console.log(' clever list');
|
12 | console.log('');
|
13 | });
|
14 |
|
15 | program.parse(process.argv);
|
16 |
|
17 | process.argv = process.argv.splice(0, 2);
|
18 |
|
19 | require(path.join(__dirname, 'clever-search'));
|