summaryrefslogtreecommitdiff
path: root/src/cgls/cgls.c
diff options
context:
space:
mode:
authorDaniel Albers <daniel@lbe.rs>2013-06-17 11:36:35 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-06-17 10:33:34 -0400
commit98a6e132b5b85999f7e3dce158e826ffeecc1553 (patch)
treeb9ad6b4626fc52027eaa004a3c89bb37fd6f3c40 /src/cgls/cgls.c
parentfa3868c6d317b88715c55422b898f9070afe6575 (diff)
journalctl,loginctl,systemctl,systemd-cgls: add -l as alias for --full
https://bugs.freedesktop.org/show_bug.cgi?id=65850
Diffstat (limited to 'src/cgls/cgls.c')
-rw-r--r--src/cgls/cgls.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cgls/cgls.c b/src/cgls/cgls.c
index ef3e5672ab..f232731ab4 100644
--- a/src/cgls/cgls.c
+++ b/src/cgls/cgls.c
@@ -49,7 +49,7 @@ static void help(void) {
" --version Show package version\n"
" --no-pager Do not pipe output into a pager\n"
" -a --all Show all groups, including empty\n"
- " --full Do not ellipsize output\n"
+ " -l --full Do not ellipsize output\n"
" -k Include kernel threads in output\n"
" -M --machine Show container\n",
program_invocation_short_name);
@@ -60,7 +60,6 @@ static int parse_argv(int argc, char *argv[]) {
enum {
ARG_NO_PAGER = 0x100,
ARG_VERSION,
- ARG_FULL,
};
static const struct option options[] = {
@@ -68,7 +67,7 @@ static int parse_argv(int argc, char *argv[]) {
{ "version", no_argument, NULL, ARG_VERSION },
{ "no-pager", no_argument, NULL, ARG_NO_PAGER },
{ "all", no_argument, NULL, 'a' },
- { "full", no_argument, NULL, ARG_FULL },
+ { "full", no_argument, NULL, 'l' },
{ "machine", required_argument, NULL, 'M' },
{ NULL, 0, NULL, 0 }
};
@@ -99,7 +98,7 @@ static int parse_argv(int argc, char *argv[]) {
arg_all = true;
break;
- case ARG_FULL:
+ case 'l':
arg_full = true;
break;