From adc09ffc3bccb24c83a471c8af1f9bf68f2cf9c8 Mon Sep 17 00:00:00 2001 From: David Steele Date: Thu, 28 Oct 2021 08:10:43 -0400 Subject: [PATCH] Minor fix for lower-casing of option summaries. This works with existing cases and fixes "I/O". --- src/command/help/help.c | 2 +- test/src/module/command/helpTest.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command/help/help.c b/src/command/help/help.c index cd1a64192..88a326a54 100644 --- a/src/command/help/help.c +++ b/src/command/help/help.c @@ -445,7 +445,7 @@ helpRender(const Buffer *const helpData) strNew(), optionData[optionId].summary, strSize(optionData[optionId].summary) - 1); ASSERT(strSize(summary) > 1); - if (!isupper(strZ(summary)[1]) && !isdigit(strZ(summary)[1])) + if (!isupper(strZ(summary)[1]) && isalpha(strZ(summary)[1])) strFirstLower(summary); // Output current and default values if they exist diff --git a/test/src/module/command/helpTest.c b/test/src/module/command/helpTest.c index 69f70cc8e..83ef344c3 100644 --- a/test/src/module/command/helpTest.c +++ b/test/src/module/command/helpTest.c @@ -232,7 +232,7 @@ testRun(void) " --config-path base path of pgBackRest configuration files\n" " [default=/etc/pgbackrest]\n" " --delta restore or backup using checksums [default=n]\n" - " --io-timeout i/O timeout [default=60]\n" + " --io-timeout I/O timeout [default=60]\n" " --lock-path path where lock files are stored\n" " [default=/tmp/pgbackrest]\n" " --neutral-umask use a neutral umask [default=y]\n"