From b2f8e744deea23651f9c1d5ec7e36272555220a2 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sat, 15 Mar 2025 22:08:02 +0100 Subject: [PATCH] lvm: option description only for man generator There is no need to include option description text within command binary itself. It's only used only for man generating. --- tools/command.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/command.c b/tools/command.c index a250ef4a5..b6b6257b1 100644 --- a/tools/command.c +++ b/tools/command.c @@ -47,7 +47,11 @@ static const struct val_name val_names[VAL_COUNT + 1] = { /* create table of option names, e.g. --foo, and corresponding enum from args.h */ static const struct opt_name opt_names[ARG_COUNT + 1] = { +#ifndef MAN_PAGE_GENERATOR +#define arg(a, b, c, d, e, f, g) { NULL, "--" c, b, a, d, e, f }, +#else #define arg(a, b, c, d, e, f, g) { g, "--" c, b, a, d, e, f }, +#endif #include "args.h" #undef arg };