From 49bf51b65ca629de03b46765529fa5efbf3bfc18 Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Wed, 30 Jan 2019 15:13:38 +0000 Subject: [PATCH] fix: rename local flag to offline (#318) In the context of https://github.com/ipfs/js-ipfs/issues/1778 and https://github.com/ipfs/js-ipfs/pull/1850 , this is now needed for the tests. BREAKING CHANGE: `--local` option has been renamed to `--offline` --- src/ipfsd-in-proc.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ipfsd-in-proc.js b/src/ipfsd-in-proc.js index 6d5815bf..010f6c8e 100644 --- a/src/ipfsd-in-proc.js +++ b/src/ipfsd-in-proc.js @@ -57,8 +57,8 @@ class InProc extends EventEmitter { this.opts.EXPERIMENTAL.ipnsPubsub = true } else if (arg === '--enable-dht-experiment') { this.opts.EXPERIMENTAL.dht = true - } else if (arg === '--local') { - this.opts.local = true + } else if (arg === '--offline') { + this.opts.offline = true } else if (arg.startsWith('--pass')) { this.opts.pass = arg.split(' ').slice(1).join(' ') } else { @@ -71,7 +71,7 @@ class InProc extends EventEmitter { init: false, start: false, pass: this.opts.pass, - local: this.opts.local, + offline: this.opts.offline, EXPERIMENTAL: this.opts.EXPERIMENTAL, libp2p: this.opts.libp2p, config: this.opts.config