Skip to content

Commit 594ae64

Browse files
Merge pull request #3129 from ipfs/feat/default-rename
commands: replace <default> keyword with <<default>>
2 parents 6f1062b + 7e5393c commit 594ae64

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

commands/option.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ func (o *option) Description() string {
4747
o.description += "."
4848
}
4949
if o.defaultVal != nil {
50-
if strings.Contains(o.description, "<default>") {
51-
return strings.Replace(o.description, "<default>",
50+
if strings.Contains(o.description, "<<default>>") {
51+
return strings.Replace(o.description, "<<default>>",
5252
fmt.Sprintf("Default: %v.", o.defaultVal), -1)
5353
} else {
5454
return fmt.Sprintf("%s Default: %v.", o.description, o.defaultVal)

core/commands/publish.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Publish an <ipfs-path> to another public key (not implemented):
5252
Options: []cmds.Option{
5353
cmds.BoolOption("resolve", "Resolve given path before publishing.").Default(true),
5454
cmds.StringOption("lifetime", "t",
55-
`Time duration that the record will be valid for. <default>
55+
`Time duration that the record will be valid for. <<default>>
5656
This accepts durations such as "300s", "1.5h" or "2h45m". Valid time units are
5757
"ns", "us" (or "µs"), "ms", "s", "m", "h".`).Default("24h"),
5858
cmds.StringOption("ttl", "Time duration this record should be cached for (caution: experimental)."),

0 commit comments

Comments
 (0)