diff options
author | Bruce Momjian <bruce@momjian.us> | 2020-12-26 10:00:05 -0500 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2020-12-26 10:00:05 -0500 |
commit | ccbe34139b7d9059f4af3405b2411f653cc2ce7c (patch) | |
tree | 9ded89c70b34ee815aeaea5743afdeeb33b507a5 /src | |
parent | ba6725df364cd30e068ccd962fa426d9b7b44066 (diff) | |
download | postgresql-ccbe34139b7d9059f4af3405b2411f653cc2ce7c.tar.gz postgresql-ccbe34139b7d9059f4af3405b2411f653cc2ce7c.zip |
initdb: document that -K requires an argument
Reported-by: "Shinoda, Noriyoshi"
Discussion: https://postgr.es/m/TU4PR8401MB1152E92B4D44C81E496D6032EEDB0@TU4PR8401MB1152.NAMPRD84.PROD.OUTLOOK.COM
Author: "Shinoda, Noriyoshi"
Backpatch-through: msater
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/initdb/initdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c index 4d07ce6e3ff..33a11e0d2bf 100644 --- a/src/bin/initdb/initdb.c +++ b/src/bin/initdb/initdb.c @@ -2318,7 +2318,7 @@ usage(const char *progname) " to obtain the cluster key\n")); printf(_(" -d, --debug generate lots of debugging output\n")); printf(_(" -k, --data-checksums use data page checksums\n")); - printf(_(" -K, --file-encryption-keylen\n" + printf(_(" -K, --file-encryption-keylen=LENGTH\n" " bit length of the file encryption key\n")); printf(_(" -L DIRECTORY where to find the input files\n")); printf(_(" -n, --no-clean do not clean up after errors\n")); @@ -3008,7 +3008,7 @@ main(int argc, char *argv[]) {"wal-segsize", required_argument, NULL, 12}, {"data-checksums", no_argument, NULL, 'k'}, {"authprompt", no_argument, NULL, 'R'}, - {"file-encryption-keylen", no_argument, NULL, 'K'}, + {"file-encryption-keylen", required_argument, NULL, 'K'}, {"allow-group-access", no_argument, NULL, 'g'}, {"cluster-key-command", required_argument, NULL, 'c'}, {"copy-encryption-keys", required_argument, NULL, 'u'}, |