Skip to content

Commit e1b9054

Browse files
authored
cli: account for initial indent on subcommands (#23985)
1 parent ff43cd5 commit e1b9054

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎vlib/cli/help.v‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ pub fn (cmd &Command) help_message() string {
114114
base_indent := ' '.repeat(base_indent_len)
115115
description_indent := ' '.repeat(name_len - command.name.len)
116116
help += '${base_indent}${command.name}${description_indent}' +
117-
pretty_description(command.description, name_len) + '\n'
117+
pretty_description(command.description, base_indent_len + name_len) + '\n'
118118
}
119119
}
120120
return help

0 commit comments

Comments
 (0)