loginctl: add --json= and -j to help text

Follow-up for ea54517476
This commit is contained in:
Mike Yuan 2024-01-19 23:01:42 +08:00 committed by Luca Boccassi
parent 204d52c4b7
commit 017f53e192

View 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"