resolvectl: use pager for help output
This commit is contained in:
committed by
Luca Boccassi
parent
f6c81cc805
commit
cf71be0a9e
@@ -3625,6 +3625,8 @@ static int compat_help(void) {
|
||||
if (r < 0)
|
||||
return log_oom();
|
||||
|
||||
pager_open(arg_pager_flags);
|
||||
|
||||
printf("%1$s [OPTIONS...] HOSTNAME|ADDRESS...\n"
|
||||
"%1$s [OPTIONS...] --service [[NAME] TYPE] DOMAIN\n"
|
||||
"%1$s [OPTIONS...] --openpgp EMAIL@DOMAIN...\n"
|
||||
@@ -3682,6 +3684,8 @@ static int native_help(void) {
|
||||
if (r < 0)
|
||||
return log_oom();
|
||||
|
||||
pager_open(arg_pager_flags);
|
||||
|
||||
printf("%1$s [OPTIONS...] COMMAND ...\n"
|
||||
"\n"
|
||||
"%5$sSend control commands to the network name resolution manager, or%6$s\n"
|
||||
|
||||
Reference in New Issue
Block a user