feat: add weak attribute to cli_print_options

This commit is contained in:
lohhiiccc 2026-07-20 16:11:44 +02:00
parent a1b7a36204
commit be6e3ebcc7

View file

@ -40,7 +40,7 @@ enum { CLI_OPT_ARG_TYPES };
void cli_set_prog_name(const char *name); void cli_set_prog_name(const char *name);
void cli_print_options(const struct option_descriptor *opts, size_t nb_opts, void cli_print_options(const struct option_descriptor *opts, size_t nb_opts,
t_arg_type_to_str to_str); t_arg_type_to_str to_str) __attribute__((weak));
const char *cli_arg_type_to_str(int type); const char *cli_arg_type_to_str(int type);