Commit 3d2a5011 authored by Jeromy Johnson's avatar Jeromy Johnson Committed by GitHub

Merge pull request #3129 from ipfs/feat/default-rename

commands: replace <default> keyword with <<default>>
parents f6cd689f 52cd6b76
......@@ -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)
......
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