From 017f53e1920f70f3e336514cd3b96b3b75732fd9 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Fri, 19 Jan 2024 23:01:42 +0800 Subject: [PATCH] loginctl: add --json= and -j to help text Follow-up for ea54517476521a35fd10790664f2525a03c582b6 --- src/login/loginctl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/login/loginctl.c b/src/login/loginctl.c index b9c34cfc0f..63253bd9dc 100644 --- a/src/login/loginctl.c +++ b/src/login/loginctl.c @@ -1517,7 +1517,10 @@ static int help(int argc, char *argv[], void *userdata) { " --kill-whom=WHOM Whom to send signal to\n" " -s --signal=SIGNAL Which signal to send\n" " -n --lines=INTEGER Number of journal entries to show\n" - " -o --output=STRING Change journal output mode (short, short-precise,\n" + " --json=MODE Generate JSON output for list-sessions/users/seats\n" + " (takes one of pretty, short, or off)\n" + " -j Same as --json=pretty on tty, --json=short otherwise\n" + " -o --output=MODE Change journal output mode (short, short-precise,\n" " short-iso, short-iso-precise, short-full,\n" " short-monotonic, short-unix, short-delta,\n" " json, json-pretty, json-sse, json-seq, cat,\n" -- 2.25.1