@cryptotaxi247 / kubo / commits / 545571c32

Apply suggestions from code review

Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>

Marcin Rataj committed Oct 11, 2021 at 20:36 UTC 545571c3284c88e4d81598f7d895fc3bc709910e
1 file changed +2 -2
core/commands/add.go
+2 -2
@@ -133,10 +133,10 @@ only-hash, and progress/status related flags) will change the final hash.
133 cmds.BoolOption(wrapOptionName, "w", "Wrap files with a directory object."),
134 cmds.StringOption(chunkerOptionName, "s", "Chunking algorithm, size-[bytes], rabin-[min]-[avg]-[max] or buzhash").WithDefault("size-262144"),
135 cmds.BoolOption(pinOptionName, "Pin this object when adding.").WithDefault(true),
136 - cmds.BoolOption(rawLeavesOptionName, "Use raw blocks for leaf nodes. Implies CIDv1 when enabled. (experimental)"),
136 + cmds.BoolOption(rawLeavesOptionName, "Use raw blocks for leaf nodes."),
137 cmds.BoolOption(noCopyOptionName, "Add the file using filestore. Implies raw-leaves. (experimental)"),
138 cmds.BoolOption(fstoreCacheOptionName, "Check the filestore for pre-existing blocks. (experimental)"),
139 - cmds.IntOption(cidVersionOptionName, "CID version. Defaults to 0 unless an option that depends on CIDv1 (hash, raw-leaves) is passed."),
139 + cmds.IntOption(cidVersionOptionName, "CID version. Defaults to 0 unless an option that depends on CIDv1 is passed. Passing version 1 will cause the raw-leaves option to default to true."),
140 cmds.StringOption(hashOptionName, "Hash function to use. Implies CIDv1 if not sha2-256. (experimental)").WithDefault("sha2-256"),
141 cmds.BoolOption(inlineOptionName, "Inline small blocks into CIDs. (experimental)"),
142 cmds.IntOption(inlineLimitOptionName, "Maximum block size to inline. (experimental)").WithDefault(32),