]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/options: add common option macros for --cat-config and --tldr
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Tue, 24 Mar 2026 08:40:17 +0000 (09:40 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Tue, 24 Mar 2026 23:45:57 +0000 (00:45 +0100)
Co-developed-by: Claude <claude@anthropic.com>
src/shared/options.h

index fc5b748fc66d6a9ad98bfd19b6164bf18f5b3c6f..bae42cdcf61cfc31bc5dc948614a148f8935eaa3 100644 (file)
@@ -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)")