Skip to content

Commit

Permalink
fix: rename local flag to offline (#318)
Browse files Browse the repository at this point in the history
In the context of ipfs/js-ipfs#1778 and ipfs/js-ipfs#1850 , this is now needed for the tests.

BREAKING CHANGE: `--local` option has been renamed to `--offline`
  • Loading branch information
vasco-santos authored and hugomrdias committed Jan 30, 2019
1 parent 20369b0 commit 49bf51b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ipfsd-in-proc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit 49bf51b

Please sign in to comment.