Skip to content

Commit d762027

Browse files
author
nicola
committed
adding backwards compatibility to --uriBase and --fileBase
1 parent 0a0d3f0 commit d762027

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎options.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ function params(argv) {
1515
// From input
1616
opts.cache = argv.cache;
1717
opts.live = argv.live;
18-
opts.path = opts.base = argv.base || process.cwd();
18+
opts.path = opts.base = argv.base || argv.fileBase || process.cwd();
1919
opts.port = argv.port;
2020
opts.secret = argv.secret;
2121
opts.cert = argv.cert;
2222
opts.key = argv.key;
2323
// TODO no need of uri
24-
opts.uri = opts.uri = argv.uri;
24+
opts.uri = opts.uri = argv.uri || argv.uriBase;
2525
opts.verbose = argv.verbose;
2626
opts.webid = argv.webid;
2727

0 commit comments

Comments
 (0)