PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ usage()

static void usage ( int  status)
static

Definition at line 24 of file pgsql2shp-cli.c.

25 {
26  /* TODO: if status != 0 print all to stderr */
27 
28  printf(_( "RELEASE: %s (r%d)\n" ), POSTGIS_LIB_VERSION, POSTGIS_SVN_REVISION);
29  printf(_("USAGE: pgsql2shp [<options>] <database> [<schema>.]<table>\n"
30  " pgsql2shp [<options>] <database> <query>\n"
31  "\n"
32  "OPTIONS:\n" ));
33  printf(_(" -f <filename> Use this option to specify the name of the file to create.\n" ));
34  printf(_(" -h <host> Allows you to specify connection to a database on a\n"
35  " machine other than the default.\n" ));
36  printf(_(" -p <port> Allows you to specify a database port other than the default.\n" ));
37  printf(_(" -P <password> Connect to the database with the specified password.\n" ));
38  printf(_(" -u <user> Connect to the database as the specified user.\n" ));
39  printf(_(" -g <geometry_column> Specify the geometry column to be exported.\n" ));
40  printf(_(" -b Use a binary cursor.\n" ));
41  printf(_(" -r Raw mode. Do not assume table has been created by the loader. This would\n"
42  " not unescape attribute names and will not skip the 'gid' attribute.\n" ));
43  printf(_(" -k Keep PostgreSQL identifiers case.\n" ));
44  printf(_(" -m <filename> Specify a file containing a set of mappings of (long) column\n"
45  " names to 10 character DBF column names. The content of the file is one or\n"
46  " more lines of two names separated by white space and no trailing or\n"
47  " leading space. For example:\n"
48  " COLUMNNAME DBFFIELD1\n"
49  " AVERYLONGCOLUMNNAME DBFFIELD2\n" ));
50  printf(_(" -? Display this help screen.\n\n" ));
51  exit(status);
52 }
#define _(String)
Definition: shpcommon.h:24
#define POSTGIS_LIB_VERSION
Definition: sqldefines.h:12

References _, and POSTGIS_LIB_VERSION.

Referenced by main().

Here is the caller graph for this function: