projects
/
henge
/
kiak.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1d35c77
)
usage/opts update: add file-dir binding
author
ken
<ken@kengrimes.com>
Mon, 10 Jul 2017 03:19:03 +0000
(
03:19
+0000)
committer
ken
<ken@kengrimes.com>
Mon, 10 Jul 2017 03:19:03 +0000
(
03:19
+0000)
opts.js
patch
|
blob
|
history
usage
patch
|
blob
|
history
diff --git
a/opts.js
b/opts.js
index
917ddcd
..
29a378a
100644
(file)
--- a/
opts.js
+++ b/
opts.js
@@
-13,20
+13,19
@@
const path = require('path')
*/
exports = require('minimist')(process.argv.slice(2), {
string: [ 'config', 'client-js', 'host-js', 'ca-cert', 'ca-key',
*/
exports = require('minimist')(process.argv.slice(2), {
string: [ 'config', 'client-js', 'host-js', 'ca-cert', 'ca-key',
- 'port', '
index', 'bind', 'electron
', 'dedicated'
+ 'port', '
bind', 'electron', 'file-dir
', 'dedicated'
],
boolean: [ 'no-tls', 'legacy-socket' ],
alias: { c: 'config',
j: 'client-js',
J: 'host-js',
],
boolean: [ 'no-tls', 'legacy-socket' ],
alias: { c: 'config',
j: 'client-js',
J: 'host-js',
- T: 'no-tls',
C: 'ca-cert',
K: 'ca-key',
p: 'port',
C: 'ca-cert',
K: 'ca-key',
p: 'port',
- i: 'index',
b: 'bind',
e: 'electron',
b: 'bind',
e: 'electron',
- d: 'dedicated'
+ d: 'file-dir',
+ D: 'dedicated'
},
stopEarly: true,
unknown: (opt) => {
},
stopEarly: true,
unknown: (opt) => {
@@
-48,9
+47,9
@@
exports['defaults'] = {
'ca-cert': '../certs/cert.pem',
'ca-key': '../certs/key.pem',
port: 2443,
'ca-cert': '../certs/cert.pem',
'ca-key': '../certs/key.pem',
port: 2443,
- index: './index.html',
bind: 'www:./www',
electron: undefined,
bind: 'www:./www',
electron: undefined,
+ 'file-dir': undefined,
dedicated: undefined,
'legacy-socket': false
}
dedicated: undefined,
'legacy-socket': false
}
diff --git
a/usage
b/usage
index
25b4715
..
c138a5c
100644
(file)
--- a/
usage
+++ b/
usage
@@
-38,7
+38,7
@@
ROUTING
window which will be launched on execution (nil)
- enables optional electron dependency
window which will be launched on execution (nil)
- enables optional electron dependency
- -
d
, --dedicated=string Route all incoming connections to this route (nil)
+ -
D
, --dedicated=string Route all incoming connections to this route (nil)
- can be used in conjunction with '-e' for single-user
e.g. Create a dedicated electron listener
$ strapp -e default -d default
- can be used in conjunction with '-e' for single-user
e.g. Create a dedicated electron listener
$ strapp -e default -d default