Commit a631d745 authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Juan Batiz-Benet

docs(add) help

parent aa1c3cae
...@@ -26,7 +26,15 @@ var addCmd = &cmds.Command{ ...@@ -26,7 +26,15 @@ var addCmd = &cmds.Command{
Arguments: []cmds.Argument{ Arguments: []cmds.Argument{
cmds.Argument{"file", cmds.ArgFile, false, true}, cmds.Argument{"file", cmds.ArgFile, false, true},
}, },
Help: "TODO", // TODO UsageLine: "add",
// TODO Short: "Add an object to ipfs.",
Help: `ipfs add <path>... - Add objects to ipfs.
Adds contents of <path> to ipfs. Use -r to add directories.
Note that directories are added recursively, to form the ipfs
MerkleDAG. A smarter partial add with a staging area (like git)
remains to be implemented.
`,
Run: func(res cmds.Response, req cmds.Request) { Run: func(res cmds.Response, req cmds.Request) {
n := req.Context().Node n := req.Context().Node
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment