diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-02-09 09:40:11 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-02-09 09:41:33 +0100 |
commit | 00d0f58443c41c06cf1fe6b105318f7a01874be5 (patch) | |
tree | c8a1edf11c1ed865a79c565cd5e1d84d9d2c7fda /src/sysext | |
parent | sysext: point to the right man page for the mode we are invoked in (diff) | |
download | systemd-00d0f58443c41c06cf1fe6b105318f7a01874be5.tar.xz systemd-00d0f58443c41c06cf1fe6b105318f7a01874be5.zip |
sysext: output an appropriate blurb for the mode we are executed in
Diffstat (limited to 'src/sysext')
-rw-r--r-- | src/sysext/sysext.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/sysext/sysext.c b/src/sysext/sysext.c index 3a316ff9dc..6c1bfdb77e 100644 --- a/src/sysext/sysext.c +++ b/src/sysext/sysext.c @@ -71,6 +71,7 @@ static const struct { const char *full_identifier; const char *short_identifier; const char *short_identifier_plural; + const char *blurb; const char *dot_directory_name; const char *directory_name; const char *level_env; @@ -83,6 +84,7 @@ static const struct { .full_identifier = "systemd-sysext", .short_identifier = "sysext", .short_identifier_plural = "extensions", + .blurb = "Merge system extension images into /usr/ and /opt/.", .dot_directory_name = ".systemd-sysext", .level_env = "SYSEXT_LEVEL", .scope_env = "SYSEXT_SCOPE", @@ -94,6 +96,7 @@ static const struct { .full_identifier = "systemd-confext", .short_identifier = "confext", .short_identifier_plural = "confexts", + .blurb = "Merge configuration extension images into /etc/.", .dot_directory_name = ".systemd-confext", .level_env = "CONFEXT_LEVEL", .scope_env = "CONFEXT_SCOPE", @@ -1372,8 +1375,7 @@ static int verb_help(int argc, char **argv, void *userdata) { return log_oom(); printf("%1$s [OPTIONS...] COMMAND\n" - "\n%5$sMerge extension images into /usr/ and /opt/ hierarchies for\n" - "sysext and into the /etc/ hierarchy for confext.%6$s\n" + "\n%5$s%7$s%6$s\n" "\n%3$sCommands:%4$s\n" " status Show current merge status (default)\n" " merge Merge extensions into relevant hierarchies\n" @@ -1399,7 +1401,8 @@ static int verb_help(int argc, char **argv, void *userdata) { ansi_underline(), ansi_normal(), ansi_highlight(), - ansi_normal()); + ansi_normal(), + image_class_info[arg_image_class].blurb); return 0; } |