Commit b44fc39f authored by Bruce Momjian's avatar Bruce Momjian

pg_dump: make argument combination error exit code consistent

Per report from Pavel Golub
parent f1ba94bc
...@@ -563,10 +563,16 @@ main(int argc, char **argv) ...@@ -563,10 +563,16 @@ main(int argc, char **argv)
dump_inserts = 1; dump_inserts = 1;
if (dataOnly && schemaOnly) 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) 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) if (dump_inserts && oids)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment