summaryrefslogtreecommitdiff
path: root/src/login/loginctl.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-06-19 18:08:14 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-06-19 18:08:14 -0400
commit422fa6500a44a222b655cd218a658f8a4f34a768 (patch)
treefb4f1b5b5d6ba140e52e4f0e8b97633b1b488275 /src/login/loginctl.c
parentfe004b7c3a8325eb8d5420c1b940a5ade2691417 (diff)
cgls,loginctl,systemctl: fix -l
Fixup for 98a6e13 "journalctl,loginctl,systemctl,systemd-cgls: add -l as alias for --full".
Diffstat (limited to 'src/login/loginctl.c')
-rw-r--r--src/login/loginctl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/login/loginctl.c b/src/login/loginctl.c
index 087e52d503..1b9723fdbf 100644
--- a/src/login/loginctl.c
+++ b/src/login/loginctl.c
@@ -1346,13 +1346,13 @@ static int parse_argv(int argc, char *argv[]) {
{ "version", no_argument, NULL, ARG_VERSION },
{ "property", required_argument, NULL, 'p' },
{ "all", no_argument, NULL, 'a' },
+ { "full", no_argument, NULL, 'l' },
{ "no-pager", no_argument, NULL, ARG_NO_PAGER },
{ "kill-who", required_argument, NULL, ARG_KILL_WHO },
{ "signal", required_argument, NULL, 's' },
{ "host", required_argument, NULL, 'H' },
{ "privileged", no_argument, NULL, 'P' },
{ "no-ask-password", no_argument, NULL, ARG_NO_ASK_PASSWORD },
- { "full", no_argument, NULL, 'l' },
{ NULL, 0, NULL, 0 }
};
@@ -1361,7 +1361,7 @@ static int parse_argv(int argc, char *argv[]) {
assert(argc >= 0);
assert(argv);
- while ((c = getopt_long(argc, argv, "hp:as:H:P", options, NULL)) >= 0) {
+ while ((c = getopt_long(argc, argv, "hp:als:H:P", options, NULL)) >= 0) {
switch (c) {
@@ -1395,6 +1395,10 @@ static int parse_argv(int argc, char *argv[]) {
arg_all = true;
break;
+ case 'l':
+ arg_full = true;
+ break;
+
case ARG_NO_PAGER:
arg_no_pager = true;
break;
@@ -1424,10 +1428,6 @@ static int parse_argv(int argc, char *argv[]) {
parse_user_at_host(optarg, &arg_user, &arg_host);
break;
- case 'l':
- arg_full = true;
- break;
-
case '?':
return -EINVAL;