From: Zbigniew Jędrzejewski-Szmek Date: Tue, 24 Mar 2026 08:40:17 +0000 (+0100) Subject: shared/options: add common option macros for --cat-config and --tldr X-Git-Tag: v261-rc1~744^2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0765919f056c5f57a85e01c6f7d3e95257a41615;p=thirdparty%2Fsystemd.git shared/options: add common option macros for --cat-config and --tldr Co-developed-by: Claude --- diff --git a/src/shared/options.h b/src/shared/options.h index fc5b748fc66..bae42cdcf61 100644 --- a/src/shared/options.h +++ b/src/shared/options.h @@ -54,6 +54,10 @@ typedef struct Option { OPTION_LONG("no-pager", NULL, "Do not start a pager") #define OPTION_COMMON_NO_LEGEND \ OPTION_LONG("no-legend", NULL, "Do not show headers and footers") +#define OPTION_COMMON_CAT_CONFIG \ + OPTION_LONG("cat-config", NULL, "Show configuration files") +#define OPTION_COMMON_TLDR \ + OPTION_LONG("tldr", NULL, "Show non-comment parts of configuration") #define OPTION_COMMON_JSON \ OPTION_LONG("json", "FORMAT", "Generate JSON output (pretty, short, or off)")