postgis.git / summary / log / commit / refs

commit    a783dca52b99ebe976216ed6f37d7992ec300528
Author:   Sandro Santilli <strk@kbt.io>
Date:     Thu May 15 06:41:59 2025 +0000

    Do not print "illegal option" when -? is passed
    
    Thanks Giovanni Zezza for the report


loader/shp2pgsql-cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/shp2pgsql-cli.c b/loader/shp2pgsql-cli.c index 8703f74c4..3029ff104 100644 --- a/loader/shp2pgsql-cli.c +++ b/loader/shp2pgsql-cli.c @@ -105,7 +105,7 @@ main (int argc, char **argv) set_loader_config_defaults(config); /* Keep the flag list alphabetic so it's easy to see what's left. */ - while ((c = pgis_getopt(argc, argv, "-acdeg:ikm:nps:t:wDGIN:ST:W:X:Z")) != EOF) + while ((c = pgis_getopt(argc, argv, "-?acdeg:ikm:nps:t:wDGIN:ST:W:X:Z")) != EOF) { // can not do this inside the switch case if ('-' == c) [parent: c2d181ede78b]