Commit b836e72a authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

cmd2 align arguments properly

parent c0b3b437
......@@ -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
......
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