Merge branch 'main' into feature/new-object-system

This commit is contained in:
2025-10-15 11:13:00 +01:00
227 changed files with 8252 additions and 2129 deletions

View File

@@ -127,7 +127,7 @@ void z__b_get_arg_usage_string(
if (optional) {
b_string_append_cstrf(
out, colour ? F_GREEN "[%s]" : "[%s]", arg->arg_name);
out, colour ? F_GREEN "[[%s]" : "[[%s]", arg->arg_name);
} else {
b_string_append_cstrf(
out, colour ? F_GREEN "<%s>" : "<%s>", arg->arg_name);

View File

@@ -1,5 +1,6 @@
#include "command.h"
#include <assert.h>
#include <blue/core/stringstream.h>
#include <blue/ds/string.h>
#include <blue/term/print.h>
@@ -132,11 +133,13 @@ enum b_status b_arglist_report_missing_args(
if (opt_id != B_COMMAND_INVALID_ID) {
opt = b_command_get_option_with_id(args->list_command, opt_id);
assert(opt);
}
if (arg_id != B_COMMAND_INVALID_ID) {
arg = opt ? b_command_option_get_arg_with_id(opt, arg_id)
: b_command_get_arg_with_id(args->list_command, arg_id);
assert(arg);
}
struct b_string *usage = z__b_command_default_usage_string(