var webViewer = require("web-viewer"),
	opener = require("opener"),
	app = webViewer();
	
app.file(function(req, res){
	// render reader
	// req.path ...
});

app.dir(function(req, res){
	// render file list
});

app.listen(8080, function(){
	opener("http://localhost:" + PORT);
});

@@ -1,12 +1,417 @@
 var 
+doc = %60Comic Viewer%0A%0AUsage%0A  comic-viewer %5B--port %3Cport%3E%5D %5B--no-server%5D %3Cfile%3E%0A  comic-viewer --help %7C --version%0A  %0AOptions:%0A  --port       Set the port of the server. %5Bdefault: 8080%5D%0A  --no-server  Launch the file without starting comic-viewer server.%0A  --help       Show help message.%0A  --version    Show version number.%60;%0A%0Avar docopt = require(%22docopt%22),%0A%09arguments = docopt(doc, %7Bversion: %220.1.0%22%7D);%0A%09
 webViewe
@@ -484,19 +484,32 @@
 Viewer()
+,%0A%09PORT = 8080
 ;%0A
-%09
 %0Aapp.fil
@@ -639,63 +639,11 @@
 ten(
-8080, function()%7B%0A%09opener(%22http://localhost:%22 + 
 PORT);%0A
-%7D);%0A

Use docopt