mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-23 11:45:36 +02:00
Do not check argc for SHOW_CONFIG and SET_CONFIG
This commit is contained in:
parent
020d6ddf62
commit
0084441818
@ -198,7 +198,7 @@ readBackupCatalogConfigFile(void)
|
||||
{ 'f', 36, "compress-algorithm", opt_compress_alg, SOURCE_CMDLINE },
|
||||
{ 'u', 37, "compress-level", &(config->compress_level), SOURCE_CMDLINE },
|
||||
/* logging options */
|
||||
{ 'i', 0, "log", &(config->log_to_file), SOURCE_CMDLINE },
|
||||
{ 'b', 0, "log", &(config->log_to_file), SOURCE_CMDLINE },
|
||||
{ 'f', 0, "log-level", opt_log_level, SOURCE_CMDLINE },
|
||||
{ 's', 0, "log-filename", &(config->log_filename), SOURCE_CMDLINE },
|
||||
{ 's', 0, "error-log-filename", &(config->error_log_filename), SOURCE_CMDLINE },
|
||||
|
@ -403,12 +403,8 @@ main(int argc, char *argv[])
|
||||
else
|
||||
return do_delete(current.backup_id);
|
||||
case SHOW_CONFIG:
|
||||
if (argc > 6)
|
||||
elog(ERROR, "show-config command doesn't accept any options except -B and --instance");
|
||||
return do_configure(true);
|
||||
case SET_CONFIG:
|
||||
if (argc == 6)
|
||||
elog(ERROR, "set-config command requires at least one option");
|
||||
return do_configure(false);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user