static int validate_command_options(void)
{
int ret = CMD_SUCCESS;
+
if (opt_snapshot && opt_live_timer) {
ERR("Snapshot and live modes are mutually exclusive.");
ret = CMD_ERROR;
}
if ((!opt_ctrl_url && opt_data_url) || (opt_ctrl_url && !opt_data_url)) {
- ERR("You need both control and data URL.");
+ ERR("Control and data URLs must both be set.");
ret = CMD_ERROR;
goto error;
}
}
} else {
/* Generate a name */
- /* TODO: use asprint */
ret = asprintf(&base_session_name, DEFAULT_SESSION_NAME "-%s", datetime);
if (ret < 0) {
- PERROR("Asprintf generated session name");
+ PERROR("Asprintf session name");
goto error;
}
session_name_date = strdup(base_session_name);