This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ module.exports = {
19
19
} ,
20
20
cidVersion : {
21
21
alias : [ 'cid-ver' , 'cid-version' ] ,
22
- type : 'integer' ,
22
+ type : 'number' ,
23
+ default : 0 ,
23
24
describe : 'Cid version to use. (experimental).'
24
25
} ,
25
26
hash : {
Original file line number Diff line number Diff line change @@ -67,7 +67,8 @@ module.exports = {
67
67
cidVersion : {
68
68
alias : [ 'cid-ver' , 'cid-version' ] ,
69
69
type : 'number' ,
70
- default : 0
70
+ default : 0 ,
71
+ describe : 'Cid version to use. (experimental).'
71
72
} ,
72
73
hashAlg : {
73
74
alias : 'h' ,
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ module.exports = (ipfs) => {
25
25
options = Object . assign ( { } , defaultOptions , options )
26
26
27
27
options . parents = options . p || options . parents
28
+ options . cidVersion = options . cidVersion || 0
28
29
29
30
if ( ! path ) {
30
31
return callback ( new Error ( 'no path given to Mkdir' ) )
Original file line number Diff line number Diff line change @@ -120,6 +120,8 @@ module.exports = function mfsWrite (ipfs) {
120
120
options . length = Infinity
121
121
}
122
122
123
+ options . cidVersion = options . cidVersion || 0
124
+
123
125
waterfall ( [
124
126
( done ) => {
125
127
parallel ( [
You can’t perform that action at this time.
0 commit comments