case ARG_URL:
if (arg_url)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
- "cannot currently set more than one --url");
+ "Cannot currently set more than one --url=");
arg_url = optarg;
break;
case ARG_GETTER:
if (arg_getter)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
- "cannot currently use --getter more than once");
+ "Cannot currently use --getter= more than once");
arg_getter = optarg;
break;
case ARG_LISTEN_RAW:
if (arg_listen_raw)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
- "cannot currently use --listen-raw more than once");
+ "Cannot currently use --listen-raw= more than once");
arg_listen_raw = optarg;
break;
case ARG_LISTEN_HTTP:
if (arg_listen_http || http_socket >= 0)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
- "cannot currently use --listen-http more than once");
+ "Cannot currently use --listen-http= more than once");
r = negative_fd(optarg);
if (r >= 0)
case ARG_LISTEN_HTTPS:
if (arg_listen_https || https_socket >= 0)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
- "cannot currently use --listen-https more than once");
+ "Cannot currently use --listen-https= more than once");
r = negative_fd(optarg);
if (r >= 0)
#if HAVE_GNUTLS
if (arg_trust)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
- "Cannot use --trust more than once");
+ "Cannot use --trust more= than once");
arg_trust = strdup(optarg);
if (!arg_trust)
return log_oom();
#else
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
- "Option --trust is not available.");
+ "Option --trust= is not available.");
#endif
break;
case 'o':
if (arg_output)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
- "cannot use --output/-o more than once");
+ "Cannot use --output=/-o more than once");
r = parse_path_argument(optarg, /* suppress_root = */ false, &arg_output);
if (r < 0)
break;
#else
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
- "Option --gnutls-log is not available.");
+ "Option --gnutls-log= is not available.");
#endif
case '?':
|| sd_listen_fds(false) > 0;
if (type_a && type_b)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
- "Cannot use file input or --getter with "
- "--arg-listen-... or socket activation.");
+ "Cannot use file input or --getter= with "
+ "--listen-...= or socket activation.");
if (type_a) {
if (!arg_output)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
- "Option --output must be specified with file input or --getter.");
+ "Option --output= must be specified with file input or --getter=.");
if (!IN_SET(arg_split_mode, JOURNAL_WRITE_SPLIT_NONE, _JOURNAL_WRITE_SPLIT_INVALID))
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
if ((arg_listen_raw || arg_listen_http) && *trust)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
- "Option --trust makes all non-HTTPS connections untrusted.");
+ "Option --trust= makes all non-HTTPS connections untrusted.");
return 0;
}