mirror of
https://github.com/vlang/v.git
synced 2025-08-03 17:57:59 -04:00
cli: account for initial indent on subcommands (#23985)
This commit is contained in:
parent
ff43cd5a20
commit
e1b9054a27
@ -114,7 +114,7 @@ pub fn (cmd &Command) help_message() string {
|
||||
base_indent := ' '.repeat(base_indent_len)
|
||||
description_indent := ' '.repeat(name_len - command.name.len)
|
||||
help += '${base_indent}${command.name}${description_indent}' +
|
||||
pretty_description(command.description, name_len) + '\n'
|
||||
pretty_description(command.description, base_indent_len + name_len) + '\n'
|
||||
}
|
||||
}
|
||||
return help
|
||||
|
Loading…
x
Reference in New Issue
Block a user