mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
systemctl: suffix cmdline options that take arguments with =
Just to clarify, that these options expect arguments, following our usual style.
This commit is contained in:
parent
a4dde27d73
commit
10ab1831de
@ -7330,7 +7330,7 @@ static int systemctl_parse_argv(int argc, char *argv[]) {
|
||||
|
||||
case 't': {
|
||||
if (isempty(optarg)) {
|
||||
log_error("--type requires arguments.");
|
||||
log_error("--type= requires arguments.");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@ -7570,7 +7570,7 @@ static int systemctl_parse_argv(int argc, char *argv[]) {
|
||||
|
||||
case ARG_STATE: {
|
||||
if (isempty(optarg)) {
|
||||
log_error("--state requires arguments.");
|
||||
log_error("--state= requires arguments.");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user