pg_restore: Improve --help synopsis
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 29 Apr 2025 09:32:49 +0000 (11:32 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 29 Apr 2025 09:32:49 +0000 (11:32 +0200)
The --help synopsis should only be one line.  This rephrases the first
line a bit to reflect the new functionality of restoring multiple
databases from pg_dumpall output.  Additional explanations are better
kept in the man page.

src/bin/pg_dump/pg_restore.c

index 2b69ae1f91ff0cfee6ca9ce1843842e0d317fa9a..f2182e918256098930d2b79528e06d22f6ec94fb 100644 (file)
@@ -653,8 +653,7 @@ restore_one_database(const char *inputFileSpec, RestoreOptions *opts,
 static void
 usage(const char *progname)
 {
-   printf(_("%s restores a PostgreSQL database from an archive created by pg_dump or pg_dumpall.\n"
-            "If the archive is created by pg_dumpall, then restores multiple databases also.\n\n"), progname);
+   printf(_("%s restores PostgreSQL databases from archives created by pg_dump or pg_dumpall.\n\n"), progname);
    printf(_("Usage:\n"));
    printf(_("  %s [OPTION]... [FILE]\n"), progname);