initdb: properly alphabetize getopt_long options in C string
authorBruce Momjian
Sat, 12 Dec 2020 17:51:16 +0000 (12:51 -0500)
committerBruce Momjian
Sat, 12 Dec 2020 17:51:16 +0000 (12:51 -0500)
Backpatch-through: 9.5

src/bin/initdb/initdb.c

index 4ff0c6c7005250135242e539af233d8776f10b00..0d701ce218f0882f7c365e2a5c41126088bed6a3 100644 (file)
@@ -3025,7 +3025,7 @@ main(int argc, char *argv[])
 
    /* process command-line options */
 
-   while ((c = getopt_long(argc, argv, "dD:E:kL:nNU:WA:sST:X:g", long_options, &option_index)) != -1)
+   while ((c = getopt_long(argc, argv, "A:dD:E:gkL:nNWsST:U:X:", long_options, &option_index)) != -1)
    {
        switch (c)
        {