]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: suffix cmdline options that take arguments with =
authorLennart Poettering <lennart@poettering.net>
Tue, 21 Feb 2017 10:17:24 +0000 (11:17 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 21 Feb 2017 10:17:24 +0000 (11:17 +0100)
Just to clarify, that these options expect arguments, following our
usual style.

src/systemctl/systemctl.c

index c2af46d4ee1d0a13a2e65404e8f1f7fd8cbc1c26..157a46865ff8e71ebcbc3aa48536df5ee93e7eae 100644 (file)
@@ -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;
                         }