cmd: update string api usage
This commit is contained in:
+3
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user