Skip to content

Commit bc94293

Browse files
author
rht
committedJan 23, 2016
Merge pull request #2223 from ipfs/feature/doc-add
Generic doc fixes to `ipfs add`
2 parents a2b0287 + 7a7a21b commit bc94293

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ USAGE:
9494
BASIC COMMANDS
9595
9696
init Initialize ipfs local configuration
97-
add <path> Add an object to ipfs
97+
add <path> Add a file to ipfs
9898
cat <ref> Show ipfs object data
9999
get <ref> Download ipfs objects
100100
ls <ref> List links from an object

‎core/commands/add.go

+10-11
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,11 @@ const (
3030

3131
var AddCmd = &cmds.Command{
3232
Helptext: cmds.HelpText{
33-
Tagline: "Add an object to ipfs.",
33+
Tagline: "Add a file to ipfs.",
3434
ShortDescription: `
3535
Adds contents of <path> to ipfs. Use -r to add directories.
3636
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.
3938
`,
4039
},
4140

@@ -44,15 +43,15 @@ remains to be implemented.
4443
},
4544
Options: []cmds.Option{
4645
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."),
5352
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."),
5655
},
5756
PreRun: func(req cmds.Request) error {
5857
if quiet, _, _ := req.Option(quietOptionName).Bool(); quiet {

‎core/commands/root.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ipfs [<flags>] <command> [<arg>] ...
3232
BASIC COMMANDS
3333
3434
init Initialize ipfs local configuration
35-
add <path> Add an object to ipfs
35+
add <path> Add a file to ipfs
3636
cat <ref> Show ipfs object data
3737
get <ref> Download ipfs objects
3838
ls <ref> List links from an object

0 commit comments

Comments
 (0)
Please sign in to comment.