From: Zbigniew Jędrzejewski-Szmek Date: Tue, 28 Apr 2020 09:06:20 +0000 (+0200) Subject: manager: add highlighting to --help X-Git-Tag: v246-rc1~433^2~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ae473268c092cbe8235462c0aea923d9ce36901;p=thirdparty%2Fsystemd.git manager: add highlighting to --help Also change the summary line to a bit more concise. --- diff --git a/src/core/main.c b/src/core/main.c index 49879d8e376..a2a1ca3a415 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1033,7 +1033,9 @@ static int help(void) { return log_oom(); printf("%s [OPTIONS...]\n\n" - "Starts up and maintains the system or user services.\n\n" + "%sStarts and monitors system and user services.%s\n\n" + "This program takes no positional arguments.\n\n" + "%sOptions%s:\n" " -h --help Show this help\n" " --version Show version\n" " --test Determine initial transaction, dump it and exit\n" @@ -1058,6 +1060,8 @@ static int help(void) { " --default-standard-error= Set default standard error output for services\n" "\nSee the %s for details.\n" , program_invocation_short_name + , ansi_highlight(), ansi_normal() + , ansi_underline(), ansi_normal() , link );