]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
loginctl: add --json= and -j to help text
authorMike Yuan <me@yhndnzj.com>
Fri, 19 Jan 2024 15:01:42 +0000 (23:01 +0800)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 19 Jan 2024 18:01:17 +0000 (18:01 +0000)
Follow-up for ea54517476521a35fd10790664f2525a03c582b6

src/login/loginctl.c

index b9c34cfc0f71a3a4f64ae167cd78714d3c762970..63253bd9dcf3c04b7e07e60f6dc2a671ccacacd8 100644 (file)
@@ -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"