1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-03-19 21:07:53 +02:00

Fix command reference example for the filter option.

This example was broken by 24f7252. Revert to (almost) the prior code to fix this example until something better can be committed. The something better is in progress but it adds new build requirements so it is too late to include it for the release.

Technically this breaks some other examples, but they are all internal and not visible in the user-facing documentation.
This commit is contained in:
David Steele 2023-09-23 13:41:03 -04:00
parent 6f0f2b371e
commit cb3ff6ed43
2 changed files with 12 additions and 12 deletions

View File

@ -889,20 +889,12 @@ sub helpOptionGet
}
else
{
foreach my $strLine (split('\\|', $$oOptionHash{&CONFIG_HELP_EXAMPLE}))
{
if ($strExample ne '')
{
$strExample .= ' ';
}
if (defined($strCommand))
{
$strExample .= '--';
$strExample = '--';
}
$strExample .= "${strOptionIndex}=${strLine}";
}
$strExample .= "${strOptionIndex}=" . $$oOptionHash{&CONFIG_HELP_EXAMPLE};
}
$strCodeBlock .= (defined($strCodeBlock) ? "\n" : '') . "example: ${strExample}";

View File

@ -183,6 +183,14 @@
<p>Fix configuration reference example for the <br-option>tls-server-address</br-option> option.</p>
</release-item>
<release-item>
<release-item-contributor-list>
<release-item-contributor id="david.steele"/>
</release-item-contributor-list>
<p>Fix command reference example for the <br-option>filter</br-option> option.</p>
</release-item>
</release-bug-list>
</release-doc-list>