diff options
Diffstat (limited to 'main.js')
-rwxr-xr-x[-rw-r--r--] | main.js | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1,5 +1,17 @@ #! /usr/bin/env node +var args = require('optimist') + .usage('Usage: $0 -c configuration [-h]') + .default('c', './config') + .describe('c', 'Configuration file') + .describe('h', 'This help message') + .argv; + +if(args.h) { + args.showHelp(fn=console.error); + return; +} + var path = require('path'); process.on('uncaughtException', function(err) { |