Fix output of createuser --help with --valid-until
authorMichael Paquier <[email protected]>
Wed, 13 Jul 2022 23:32:18 +0000 (08:32 +0900)
committerMichael Paquier <[email protected]>
Wed, 13 Jul 2022 23:32:18 +0000 (08:32 +0900)
The argument required by --valid-until, a timestamp string, was missing
in the description of --help.

Author: Shinoda, Noriyoshi
Reviewed-by: Nathan Bossart
Discussion: https://postgr.es/m/DM4PR84MB1734A6CE3839A68B59BEA599EE899@DM4PR84MB1734.NAMPRD84.PROD.OUTLOOK.COM

src/bin/scripts/createuser.c

index f8ff133f53282593112170330da2efb501d85cb8..991930a1ae21ea6d3fa7469ba0976483ed154b67 100644 (file)
@@ -426,7 +426,8 @@ help(const char *progname)
    printf(_("  -R, --no-createrole       role cannot create roles (default)\n"));
    printf(_("  -s, --superuser           role will be superuser\n"));
    printf(_("  -S, --no-superuser        role will not be superuser (default)\n"));
-   printf(_("  -v, --valid-until         password expiration date for role\n"));
+   printf(_("  -v, --valid-until=TIMESTAMP\n"
+            "                            password expiration date for role\n"));
    printf(_("  -V, --version             output version information, then exit\n"));
    printf(_("  --interactive             prompt for missing role name and attributes rather\n"
             "                            than using defaults\n"));