Wrap the source code at 80 characters.
Align the backslashes in "exportname_config_help".
Tested with:
$ nbdkit null --filter=exportname --help
[...]
default-export=<NAME> Canonical name for the "" default export.
exportname-list=<MODE> Which exports to advertise: keep (default),
error, empty, defaultonly, explicit.
exportname-strict=<BOOL> Limit clients to explicit exports (default
false).
exportname=<NAME> Add an explicit export name, may be
repeated.
exportdesc=<MODE> Set descriptions according to mode: keep
(default), none, fixed:STRING,
script:SCRIPT.
[...]
Bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=2172516
Signed-off-by: Laszlo Ersek <lersek(a)redhat.com>
---
filters/exportname/exportname.c | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/filters/exportname/exportname.c b/filters/exportname/exportname.c
index 4949de398d66..7e0d4c171d25 100644
--- a/filters/exportname/exportname.c
+++ b/filters/exportname/exportname.c
@@ -141,14 +141,17 @@ exportname_config (nbdkit_next_config *next, nbdkit_backend
*nxdata,
return next (nxdata, key, value);
}
-#define exportname_config_help \
+#define exportname_config_help \
"default-export=<NAME> Canonical name for the \"\" default
export.\n" \
- "exportname-list=<MODE> Which exports to advertise: keep (default),
error,\n" \
- " empty, defaultonly, explicit.\n" \
- "exportname-strict=<BOOL> Limit clients to explicit exports (default
false).\n" \
- "exportname=<NAME> Add an explicit export name, may be
repeated.\n" \
- "exportdesc=<MODE> Set descriptions according to mode: keep
(default),\n" \
- " none, fixed:STRING, script:SCRIPT.\n" \
+ "exportname-list=<MODE> Which exports to advertise: keep
(default),\n" \
+ " error, empty, defaultonly, explicit.\n" \
+ "exportname-strict=<BOOL> Limit clients to explicit exports
(default\n" \
+ " false).\n" \
+ "exportname=<NAME> Add an explicit export name, may be\n"
\
+ " repeated.\n" \
+ "exportdesc=<MODE> Set descriptions according to mode: keep\n"
\
+ " (default), none, fixed:STRING,\n" \
+ " script:SCRIPT.\n" \
static const char *
get_desc (const char *name, const char *def)