summaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
authorBenjamin Kiessling <mittagessen@l.unchti.me>2012-03-02 21:55:49 +0100
committerBenjamin Kiessling <mittagessen@l.unchti.me>2012-03-02 21:55:49 +0100
commitd45d56dfebe29b55ee1ee00b2f31e371134bc8a5 (patch)
tree6883762005bf02fb63b9e8c4e1f1bb72fafe8163 /main.js
parent9e24efbeb0b82f09b74ff979f6714f6636d0d606 (diff)
Enable auto reloading
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) {