From: Zbigniew Jędrzejewski-Szmek Date: Tue, 23 May 2023 19:26:57 +0000 (+0200) Subject: dissect: use pager for --help X-Git-Tag: v254-rc1~335^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fdec39796f4defce1863b8c3c7c277ecbf42c49;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/dissect/dissect.c b/src/dissect/dissect.c index 2d33a967ca8..45e0abc63d8 100644 --- a/src/dissect/dissect.c +++ b/src/dissect/dissect.c @@ -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();