Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 20c609e

Browse files
committed
feat: allow controlling preload behaviour from cli
1 parent 3f942b9 commit 20c609e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/cli/commands/add.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ module.exports = {
149149
type: 'boolean',
150150
default: true,
151151
describe: 'Pin this object when adding'
152+
},
153+
preload: {
154+
type: 'boolean',
155+
default: true,
156+
describe: 'Preload this object when adding'
152157
}
153158
},
154159

@@ -166,7 +171,8 @@ module.exports = {
166171
hashAlg: argv.hash,
167172
wrapWithDirectory: argv.wrapWithDirectory,
168173
pin: argv.pin,
169-
chunker: argv.chunker
174+
chunker: argv.chunker,
175+
preload: argv.preload
170176
}
171177

172178
if (options.enableShardingExperiment && argv.isDaemonOn()) {

0 commit comments

Comments
 (0)