mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-13 19:57:53 +08:00
pg_dump: make argument combination error exit code consistent
Per report from Pavel Golub
This commit is contained in:
parent
f1ba94bcd9
commit
b44fc39fce
@ -563,10 +563,16 @@ main(int argc, char **argv)
|
||||
dump_inserts = 1;
|
||||
|
||||
if (dataOnly && schemaOnly)
|
||||
exit_horribly(NULL, "options -s/--schema-only and -a/--data-only cannot be used together\n");
|
||||
{
|
||||
write_msg(NULL, "options -s/--schema-only and -a/--data-only cannot be used together\n");
|
||||
exit_nicely(1);
|
||||
}
|
||||
|
||||
if (dataOnly && outputClean)
|
||||
exit_horribly(NULL, "options -c/--clean and -a/--data-only cannot be used together\n");
|
||||
{
|
||||
write_msg(NULL, "options -c/--clean and -a/--data-only cannot be used together\n");
|
||||
exit_nicely(1);
|
||||
}
|
||||
|
||||
if (dump_inserts && oids)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user