1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-26 03:22:00 +03:00

dissect: use pager for --help

This output is already too long to fit on an normal terminal, and the
interesting parts are towards the top.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2023-05-23 21:26:57 +02:00
parent 78435d620c
commit 5fdec39796

View File

@ -96,6 +96,8 @@ static int help(void) {
_cleanup_free_ char *link = NULL;
int r;
pager_open(arg_pager_flags);
r = terminal_urlify_man("systemd-dissect", "1", &link);
if (r < 0)
return log_oom();