PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ usage()

static void usage ( int  status)
static

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

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

References _, POSTGIS_LIB_VERSION, and xstr.