usage
authorken <ken@kengrimes.com>
Tue, 27 Jun 2017 00:19:35 +0000 (00:19 +0000)
committerken <ken@kengrimes.com>
Tue, 27 Jun 2017 00:19:35 +0000 (00:19 +0000)
opts.js
usage

diff --git a/opts.js b/opts.js
index e97d84e..25332b0 100644 (file)
--- a/opts.js
+++ b/opts.js
@@ -32,7 +32,7 @@ exports = require('minimist')(process.argv.slice(2), {
   unknown: (opt) => {
     console.log('Unknown operator: ' + opt)
     console.log(process.argv.join(' '))
-    console.log(fs.readFileSync('./usage'))
+    console.log(fs.readFileSync('./usage', { encoding: 'utf8' }))
     process.exit()
   }
 })
diff --git a/usage b/usage
index 3d3eeee..7aa10d9 100644 (file)
--- a/usage
+++ b/usage
@@ -27,20 +27,19 @@ ROUTING
                           established by separating the key:value pairs with ','
                           commas. (www:./www)
                           e.g. Service a typical frontpage
-                            -i./html/index.html -b js:./js,html:./html,css:./css
+                            -i./html/index.html -bjs:./js,html:./html,css:./css
                           e.g. Route-based http hosting
-                            -b user1:/home/user1/www,user2:/home/user2/www
+                            -buser1:/home/user1/www,user2:/home/user2/www
   -e, --electron=string   Specify a route name for the local electron render
                           window which will be launched on execution (nil)
                           - enables optional electron dependency
   -d, --dedicated=string  Route all incoming connections to this route (nil)
                           - can be used in conjunction with '-e' for single-user
-                          e.g. Set the electron window to use route 'default',
-                               Set the dedicated route to 'default'
-                          $ node strapp.js -e default -d default
-                            - All routes point to 'default' which is bound to
-                              the local electron window.  No other hosts may
-                              be established, so no remote hosts may exist
+                          e.g. Create a dedicated electron listener
+                            - strapp -edefault -ddefault
+                              - All routes point to 'default' which is bound to
+                                the local electron window.  No other hosts may
+                                be established, so no remote hosts may exist
 
 COMPATIBILITY
   --legacy-socket=bool    Use Socket.io compatibility layer to enable