docs(add) help
Brian Tiger Chow committed
Nov 7, 2014 at 18:26 UTC
a631d745d06527aa10a98b14615c655096549052
1 file changed
+9
-1
core/commands2/add.go
+9
-1
@@ -26,7 +26,15 @@ var addCmd = &cmds.Command{
26
Arguments: []cmds.Argument{
27
cmds.Argument{"file", cmds.ArgFile, false, true},
28
},
29
- Help: "TODO",
29
+ // TODO UsageLine: "add",
30
+ // TODO Short: "Add an object to ipfs.",
31
+ Help: `ipfs add <path>... - Add objects to ipfs.
32
+
33
+ Adds contents of <path> to ipfs. Use -r to add directories.
34
+ Note that directories are added recursively, to form the ipfs
35
+ MerkleDAG. A smarter partial add with a staging area (like git)
36
+ remains to be implemented.
37
+`,
38
Run: func(res cmds.Response, req cmds.Request) {
39
n := req.Context().Node
40