cmd: use term formatting codes for command help text

This commit is contained in:
2024-11-14 22:03:39 +00:00
parent b2c9c7cab9
commit 64a246e6f7
4 changed files with 38 additions and 24 deletions

View File

@@ -160,7 +160,7 @@ void z__b_get_arg_description(struct b_command_arg *arg, b_string *out)
b_string_append_cstr(out, " ");
}
b_string_append_cstr(out, "[values:");
b_string_append_cstr(out, "[[values:");
for (size_t i = 0; arg->arg_allowed_values[i]; i++) {
if (i > 0) {