Skip to content

Commit 49bf51b

Browse files
vasco-santoshugomrdias
authored andcommitted
fix: rename local flag to offline (#318)
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`
1 parent 20369b0 commit 49bf51b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ipfsd-in-proc.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ class InProc extends EventEmitter {
5757
this.opts.EXPERIMENTAL.ipnsPubsub = true
5858
} else if (arg === '--enable-dht-experiment') {
5959
this.opts.EXPERIMENTAL.dht = true
60-
} else if (arg === '--local') {
61-
this.opts.local = true
60+
} else if (arg === '--offline') {
61+
this.opts.offline = true
6262
} else if (arg.startsWith('--pass')) {
6363
this.opts.pass = arg.split(' ').slice(1).join(' ')
6464
} else {
@@ -71,7 +71,7 @@ class InProc extends EventEmitter {
7171
init: false,
7272
start: false,
7373
pass: this.opts.pass,
74-
local: this.opts.local,
74+
offline: this.opts.offline,
7575
EXPERIMENTAL: this.opts.EXPERIMENTAL,
7676
libp2p: this.opts.libp2p,
7777
config: this.opts.config

0 commit comments

Comments
 (0)