cmd: update string api usage

This commit is contained in:
2026-05-02 14:30:27 +01:00
parent dbf50395d0
commit ce56eacafe
3 changed files with 19 additions and 19 deletions
+3 -3
View File
@@ -322,8 +322,8 @@ static fx_status parse_short_opt(struct argv_parser *parser)
parser->cmd, NULL, parser->arglist);
fx_err("unrecognised argument '" F_YELLOW "-%c" F_RESET
"'\n\n",
flag, fx_string_ptr(usage));
fx_i("usage: %s", fx_string_ptr(usage));
flag, fx_string_get_cstr(usage));
fx_i("usage: %s", fx_string_get_cstr(usage));
fx_i("for more information, use '" F_YELLOW
"--help" F_RESET "'\n");
fx_string_unref(usage);
@@ -452,7 +452,7 @@ static fx_status parse_long_opt(struct argv_parser *parser)
fx_err("unrecognised argument '" F_YELLOW "--%s" F_RESET
"'\n\nusage: %s\n\nfor more information, use '" F_YELLOW
"--help" F_RESET "'\n",
opt_name, fx_string_ptr(usage));
opt_name, fx_string_get_cstr(usage));
fx_string_unref(usage);
return FX_ERR_NO_ENTRY;