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-unixfs
Commits
b836e72a
Commit
b836e72a
authored
Nov 12, 2014
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd2 align arguments properly
parent
c0b3b437
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
commands/cli/helptext.go
commands/cli/helptext.go
+5
-1
No files found.
commands/cli/helptext.go
View file @
b836e72a
...
...
@@ -241,7 +241,11 @@ func argumentText(cmd *cmds.Command) []string {
lines
:=
make
([]
string
,
len
(
cmd
.
Arguments
))
for
i
,
arg
:=
range
cmd
.
Arguments
{
lines
[
i
]
=
argUsageText
(
arg
)
+
" - "
+
arg
.
Description
lines
[
i
]
=
argUsageText
(
arg
)
}
lines
=
align
(
lines
)
for
i
,
arg
:=
range
cmd
.
Arguments
{
lines
[
i
]
+=
" - "
+
arg
.
Description
}
return
lines
...
...
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