@@ -46,7 +46,7 @@ const (
46
46
cidVersionOptionName = "cid-version"
47
47
hashOptionName = "hash"
48
48
inlineOptionName = "inline"
49
- idHashLimitOptionName = "id-hash -limit"
49
+ inlineLimitOptionName = "inline -limit"
50
50
)
51
51
52
52
const adderOutChanSize = 8
@@ -123,8 +123,8 @@ You can now check what blocks have been created by:
123
123
cmdkit .BoolOption (fstoreCacheOptionName , "Check the filestore for pre-existing blocks. (experimental)" ),
124
124
cmdkit .IntOption (cidVersionOptionName , "CID version. Defaults to 0 unless an option that depends on CIDv1 is passed. (experimental)" ),
125
125
cmdkit .StringOption (hashOptionName , "Hash function to use. Implies CIDv1 if not sha2-256. (experimental)" ).WithDefault ("sha2-256" ),
126
- cmdkit .BoolOption (inlineOptionName , "Inline small objects using identity hash . (experimental)" ),
127
- cmdkit .IntOption (idHashLimitOptionName , "Identity hash maxium size. (experimental)" ).WithDefault (64 ),
126
+ cmdkit .BoolOption (inlineOptionName , "Inline small blcoks into CID . (experimental)" ),
127
+ cmdkit .IntOption (inlineLimitOptionName , "Maximum block size to inline . (experimental)" ).WithDefault (64 ),
128
128
},
129
129
PreRun : func (req * cmds.Request , env cmds.Environment ) error {
130
130
quiet , _ := req .Options [quietOptionName ].(bool )
@@ -179,7 +179,7 @@ You can now check what blocks have been created by:
179
179
cidVer , cidVerSet := req .Options [cidVersionOptionName ].(int )
180
180
hashFunStr , _ := req .Options [hashOptionName ].(string )
181
181
inline , _ := req .Options [inlineOptionName ].(bool )
182
- idHashLimit , _ := req .Options [idHashLimitOptionName ].(int )
182
+ inlineLimit , _ := req .Options [inlineLimitOptionName ].(int )
183
183
184
184
// The arguments are subject to the following constraints.
185
185
//
@@ -291,7 +291,8 @@ You can now check what blocks have been created by:
291
291
if inline {
292
292
fileAdder .CidBuilder = cidutil.InlineBuilder {
293
293
Builder : fileAdder .CidBuilder ,
294
- Limit : idHashLimit }
294
+ Limit : inlineLimit ,
295
+ }
295
296
}
296
297
297
298
if hash {
0 commit comments