1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2026-10-23 21:28:56 +03:00
Files
David Steele 18c3986707 Inherit an allow list documented under a command.
The help describes the values an option allows with an allow list. An option that allows the same values as another option can inherit that list instead of describing the values again.

This only worked for a list documented by an option on its own. A list documented under a command could not be inherited, so an option that only the commands document has its values written out once per command. The output option describes the same two values under manifest, repo-ls, info, verify, and version.

Record the list each command documents as well, and let inherit name the command to take it from. The command has to be named because more than one command can document the same option and the lists need not match. The type option allows full, diff, and incr for backup but nine values for restore.

A list is still checked against the values the inheriting option or command allows, so it can only be inherited where both allow the same values.

In the test declaration set is now taken by backup and restore so that backup can describe the values and restore can inherit them.
2026-08-18 13:41:56 +07:00
..