[postgis-tickets] r14994 - Tweak help string for `--' argument

Sandro Santilli strk at kbt.io
Sat Jul 16 01:05:51 PDT 2016


Author: strk
Date: 2016-07-16 01:05:51 -0700 (Sat, 16 Jul 2016)
New Revision: 14994

Modified:
   trunk/loader/shp2pgsql-cli.c
Log:
Tweak help string for `--' argument

Modified: trunk/loader/shp2pgsql-cli.c
===================================================================
--- trunk/loader/shp2pgsql-cli.c	2016-07-08 16:37:58 UTC (rev 14993)
+++ trunk/loader/shp2pgsql-cli.c	2016-07-16 08:05:51 UTC (rev 14994)
@@ -64,8 +64,10 @@
 	printf(_( "  -X <tablespace> Specify the tablespace for the table's indexes.\n"
                   "      This applies to the primary key, and the spatial index if\n"
                   "      the -I flag is used.\n" ));
-	printf(_( "  --  End of options. Use this for unusual file names starting with '-' \n" ));
 	printf(_( "  -?  Display this help screen.\n" ));
+	printf( "\n" );
+	printf(_( "  An argument of `--' disables further option processing.\n" ));
+	printf(_( "  (useful for unusual file names starting with '-')\n" ));
 }
 
 
@@ -152,7 +154,7 @@
 		case 'm':
 			config->column_map_filename = pgis_optarg;
 			break;
-			
+
 		case 'k':
 			config->quoteidentifiers = 1;
 			break;
@@ -299,7 +301,7 @@
 	{
 		char *shp_file = strdup(config->shp_file);
 		char *ptr;
-		
+
 		/* Remove the extension, if present */
 		for ( ptr = shp_file + strlen(shp_file); ptr > shp_file; ptr-- )
 		{



More information about the postgis-tickets mailing list