if (option_desc->required)
len = snprintf(usage_str + usage_len, BUF_MAX - usage_len, "%s ", option_desc->option);
else
len = snprintf(usage_str + usage_len, BUF_MAX - usage_len, "[%s] ", option_desc->option);
if (len < 0)
err(1, "%s: snprintf(", __func__);
if (option_desc->required)
len = snprintf(usage_str + usage_len, BUF_MAX - usage_len, "%s ", option_desc->option);
else
len = snprintf(usage_str + usage_len, BUF_MAX - usage_len, "[%s] ", option_desc->option);
if (len < 0)
err(1, "%s: snprintf(", __func__);