Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3-cmds
Commits
3d2a5011
Commit
3d2a5011
authored
Aug 26, 2016
by
Jeromy Johnson
Committed by
GitHub
Aug 26, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3129 from ipfs/feat/default-rename
commands: replace <default> keyword with <<default>>
parents
f6cd689f
52cd6b76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
option.go
option.go
+2
-2
No files found.
option.go
View file @
3d2a5011
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment