summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2025-02-19 09:45:57 +0900
committerMichael Paquier <michael@paquier.xyz>2025-02-19 09:45:57 +0900
commit9844eb67ccb7ff1b7cbc7722111b6b9aa81b16c9 (patch)
treea3d7b7402f4a4bb03e78aba3b0dcd71942923552 /src
parent50d3d22baba63613d1f1406b2ed460dc9b03c3fc (diff)
test_escape: Fix handling of short options in getopt_long()
This addresses two errors in the module, based on the set of options supported: - '-c', for --conninfo, was not listed. - '-f', for --force-unsupported, was not listed. While on it, these are now listed in an alphabetical order. Author: Japin Li Discussion: https://postgr.es/m/ME0P300MB04451FB20CE0346A59C25CADB6FA2@ME0P300MB0445.AUSP300.PROD.OUTLOOK.COM Backpatch-through: 13
Diffstat (limited to 'src')
-rw-r--r--src/test/modules/test_escape/test_escape.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/modules/test_escape/test_escape.c b/src/test/modules/test_escape/test_escape.c
index 09303a00a20..a8e9c3cb518 100644
--- a/src/test/modules/test_escape/test_escape.c
+++ b/src/test/modules/test_escape/test_escape.c
@@ -824,7 +824,7 @@ main(int argc, char *argv[])
{NULL, 0, NULL, 0},
};
- while ((c = getopt_long(argc, argv, "vqh", long_options, &option_index)) != -1)
+ while ((c = getopt_long(argc, argv, "c:fhqv", long_options, &option_index)) != -1)
{
switch (c)
{