adds more info about chunker option
see https://github.com/ipfs/go-ipfs/issues/4276 License: MIT Signed-off-by: Enrique Erne <enrique.erne@gmail.com>
Enrique Erne committed
Oct 14, 2017 at 19:32 UTC
92f96ee68976efa06c394725f962d408312117ef
1 file changed
+1
-1
core/commands/add.go
+1
-1
@@ -87,7 +87,7 @@ You can now refer to the added file in a gateway, like so:
87
cmds.BoolOption(onlyHashOptionName, "n", "Only chunk and hash - do not write to disk."),
88
cmds.BoolOption(wrapOptionName, "w", "Wrap files with a directory object."),
89
cmds.BoolOption(hiddenOptionName, "H", "Include files that are hidden. Only takes effect on recursive add."),
90
- cmds.StringOption(chunkerOptionName, "s", "Chunking algorithm to use."),
90
+ cmds.StringOption(chunkerOptionName, "s", "Chunking algorithm to use. Another block size can be specified using size-[bytes]. There's also the rabin- chunker which uses rabin-[min]-[avg]-[max]").Default("size-262144"),
91
cmds.BoolOption(pinOptionName, "Pin this object when adding.").Default(true),
92
cmds.BoolOption(rawLeavesOptionName, "Use raw blocks for leaf nodes. (experimental)"),
93
cmds.BoolOption(noCopyOptionName, "Add the file using filestore. (experimental)"),