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

Cleanup usage of internal options.

Apply internal to options that need to be read to determine locality but should not appear in the help.
This commit is contained in:
David Steele
2018-02-05 11:50:09 -05:00
parent be90028100
commit db21b7a360
13 changed files with 212 additions and 173 deletions

View File

@ -119,7 +119,7 @@ testRun()
strLstAdd(argList, strNew("--pg1-path=/path/to/db"));
strLstAdd(argList, strNew("--repo1-host-user=xxx"));
strLstAdd(argList, strNew("--stanza=db"));
strLstAdd(argList, strNew(TEST_COMMAND_BACKUP));
strLstAdd(argList, strNew(TEST_COMMAND_RESTORE));
TEST_ERROR(
configParse(strLstSize(argList), strLstPtr(argList)), OptionInvalidError,
"option 'repo1-host-user' not valid without option 'repo1-host'");
@ -297,8 +297,6 @@ testRun()
argList = strLstNew();
strLstAdd(argList, strNew(TEST_BACKREST_EXE));
strLstAdd(argList, strNew("--stanza=db"));
strLstAdd(argList, strNew("--repo1-host=backup"));
strLstAdd(argList, strNew("--repo1-host-user=pgbackrest"));
strLstAdd(argList, strNew("--pg1-path=/path/to/db"));
strLstAdd(argList, strNew("--no-online"));
strLstAdd(argList, strNew(TEST_COMMAND_BACKUP));