summaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'main.js')
-rwxr-xr-x[-rw-r--r--]main.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/main.js b/main.js
index f52d1ad..4b25c4e 100644..100755
--- a/main.js
+++ b/main.js
@@ -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) {