@@ -30,12 +30,11 @@ const (
30
30
31
31
var AddCmd = & cmds.Command {
32
32
Helptext : cmds.HelpText {
33
- Tagline : "Add an object to ipfs." ,
33
+ Tagline : "Add a file to ipfs." ,
34
34
ShortDescription : `
35
35
Adds contents of <path> to ipfs. Use -r to add directories.
36
36
Note that directories are added recursively, to form the ipfs
37
- MerkleDAG. A smarter partial add with a staging area (like git)
38
- remains to be implemented.
37
+ MerkleDAG.
39
38
` ,
40
39
},
41
40
@@ -44,15 +43,15 @@ remains to be implemented.
44
43
},
45
44
Options : []cmds.Option {
46
45
cmds .OptionRecursivePath , // a builtin option that allows recursive paths (-r, --recursive)
47
- cmds .BoolOption (quietOptionName , "q" , "Write minimal output" ),
48
- cmds .BoolOption (silentOptionName , "Write no output" ),
49
- cmds .BoolOption (progressOptionName , "p" , "Stream progress data" ),
50
- cmds .BoolOption (trickleOptionName , "t" , "Use trickle-dag format for dag generation" ),
51
- cmds .BoolOption (onlyHashOptionName , "n" , "Only chunk and hash - do not write to disk" ),
52
- cmds .BoolOption (wrapOptionName , "w" , "Wrap files with a directory object" ),
46
+ cmds .BoolOption (quietOptionName , "q" , "Write minimal output. " ),
47
+ cmds .BoolOption (silentOptionName , "Write no output. " ),
48
+ cmds .BoolOption (progressOptionName , "p" , "Stream progress data. " ),
49
+ cmds .BoolOption (trickleOptionName , "t" , "Use trickle-dag format for dag generation. " ),
50
+ cmds .BoolOption (onlyHashOptionName , "n" , "Only chunk and hash - do not write to disk. " ),
51
+ cmds .BoolOption (wrapOptionName , "w" , "Wrap files with a directory object. " ),
53
52
cmds .BoolOption (hiddenOptionName , "H" , "Include files that are hidden. Only takes effect on recursive add." ),
54
- cmds .StringOption (chunkerOptionName , "s" , "chunking algorithm to use" ),
55
- cmds .BoolOption (pinOptionName , "Pin this object when adding. Default true" ),
53
+ cmds .StringOption (chunkerOptionName , "s" , "Chunking algorithm to use. " ),
54
+ cmds .BoolOption (pinOptionName , "Pin this object when adding. Default: true. " ),
56
55
},
57
56
PreRun : func (req cmds.Request ) error {
58
57
if quiet , _ , _ := req .Option (quietOptionName ).Bool (); quiet {
0 commit comments