You've already forked pgbackrest
							
							
				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:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user