1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-10-30 23:37:45 +02:00

Allow internal options that do not show up in the documentation.

Used for test options initially but other use cases are on the horizon.
This commit is contained in:
David Steele
2017-12-05 14:46:52 -05:00
parent 8d4674031e
commit 5eb5d94d65
3 changed files with 21 additions and 3 deletions

View File

@@ -209,8 +209,8 @@ sub process
foreach my $strOption (sort(keys(%{$oOptionDefine})))
{
# Test options are not documented
next if ($strOption =~ /^test/);
# Skip options that are internal only for all commands (test options)
next if $oOptionDefine->{$strOption}{&CFGDEF_INTERNAL};
# Iterate through all commands
my @stryCommandList = sort(keys(%{defined($$oOptionDefine{$strOption}{&CFGDEF_COMMAND}) ?
@@ -229,6 +229,9 @@ sub process
next;
}
# Skip options that are internal only for the current command
next if $oOptionDefine->{$strOption}{&CFGDEF_COMMAND}{$strCommand}{&CFGDEF_INTERNAL};
my $oCommandDoc = $oDoc->nodeGet('operation')->nodeGet('command-list')->nodeGetById('command', $strCommand);
# First check if the option is documented in the command