Skip to content

Commit

Permalink
Merge pull request #3129 from ipfs/feat/default-rename
Browse files Browse the repository at this point in the history
commands: replace <default> keyword with <<default>>
  • Loading branch information
whyrusleeping authored Aug 26, 2016
2 parents 6f1062b + 7e5393c commit 594ae64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions commands/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ func (o *option) Description() string {
o.description += "."
}
if o.defaultVal != nil {
if strings.Contains(o.description, "<default>") {
return strings.Replace(o.description, "<default>",
if strings.Contains(o.description, "<<default>>") {
return strings.Replace(o.description, "<<default>>",
fmt.Sprintf("Default: %v.", o.defaultVal), -1)
} else {
return fmt.Sprintf("%s Default: %v.", o.description, o.defaultVal)
Expand Down
2 changes: 1 addition & 1 deletion core/commands/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Publish an <ipfs-path> to another public key (not implemented):
Options: []cmds.Option{
cmds.BoolOption("resolve", "Resolve given path before publishing.").Default(true),
cmds.StringOption("lifetime", "t",
`Time duration that the record will be valid for. <default>
`Time duration that the record will be valid for. <<default>>
This accepts durations such as "300s", "1.5h" or "2h45m". Valid time units are
"ns", "us" (or "µs"), "ms", "s", "m", "h".`).Default("24h"),
cmds.StringOption("ttl", "Time duration this record should be cached for (caution: experimental)."),
Expand Down

0 comments on commit 594ae64

Please sign in to comment.