Skip to content

Commit 97254da

Browse files
committed
improving commands help and adding --no-live
1 parent 9e08e3c commit 97254da

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

bin/ldnode.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var argv = require('nomnom')
3838
help: 'Set cache time (in seconds), 0 for no cache'
3939
})
4040
.option('noSsl', {
41-
help: 'Run ldnode with without ssl, so in http',
41+
help: 'Disable SSL, hence run on http',
4242
full: 'no-ssl',
4343
flag: true
4444
})
@@ -53,7 +53,7 @@ var argv = require('nomnom')
5353
abbr: 'C'
5454
})
5555
.option('noWebid', {
56-
help: 'Path to the ssl key',
56+
help: 'Disable WebID+TLS authentication',
5757
full: 'no-webid',
5858
flag: true
5959
})
@@ -71,6 +71,11 @@ var argv = require('nomnom')
7171
help: 'HTTP Session secret key (e.g. "your secret phrase")',
7272
abbr: 's'
7373
})
74+
.option('noLive', {
75+
full: 'no-live',
76+
help: 'Disable live support through WebSockets',
77+
abbr: 's'
78+
})
7479
.parse();
7580

7681
// Print version and leave

options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function params(argv) {
2222
opts.verbose = argv.v;
2323
opts.changesSuffix = argv.changesSuffix || ',changes';
2424
opts.SSESuffix = argv.SSESuffix || ',events';
25-
opts.ssl = argv.S;
25+
opts.ssl = argv.ssl;
2626
opts.cors = argv.cors;
2727
debug("uriBase: " + opts.uriBase);
2828

0 commit comments

Comments
 (0)