not sure how I got those 2 in one line I tried so many things.
Here it is again with correct lines:
C:\Program Files\PostgreSQL\8.3\bin>pgsql2shp -f "C:\washington\hydro\Area.shp"
-u postgres -p postgis nhd_area
**ERROR** invalid option or command parameters
RCSID: $Id: pgsql2shp.c 2762 2008-04-10 14:44:26Z pramsey $ RELEASE: 1.3.3
USAGE: pgsql2shp [<options>] <database> [<schema>.]<table>
pgsql2shp [<options>] <database> <query>
OPTIONS:
-f <filename> Use this option to specify the name of the file
to create.
-h <host> Allows you to specify connection to a database on a
machine other than the default.
-p <port> Allows you to specify a database port other than the default.
-P <password> Connect to the database with the specified password.
-u <user> Connect to the database as the specified user.
-g <geometry_column> Specify the geometry column to be exported.
-b Use a binary cursor.
-r Raw mode. Do not assume table has been created by
the loader. This would not unescape attribute names
and will not skip the 'gid' attribute.
-k Keep postgresql identifiers case.
-? Display this help screen.
Here it is again with correct lines:
C:\Program Files\PostgreSQL\8.3\bin>pgsql2shp -f "C:\washington\hydro\Area.shp"
-u postgres -p postgis nhd_area
**ERROR** invalid option or command parameters
RCSID: $Id: pgsql2shp.c 2762 2008-04-10 14:44:26Z pramsey $ RELEASE: 1.3.3
USAGE: pgsql2shp [<options>] <database> [<schema>.]<table>
pgsql2shp [<options>] <database> <query>
OPTIONS:
-f <filename> Use this option to specify the name of the file
to create.
-h <host> Allows you to specify connection to a database on a
machine other than the default.
-p <port> Allows you to specify a database port other than the default.
-P <password> Connect to the database with the specified password.
-u <user> Connect to the database as the specified user.
-g <geometry_column> Specify the geometry column to be exported.
-b Use a binary cursor.
-r Raw mode. Do not assume table has been created by
the loader. This would not unescape attribute names
and will not skip the 'gid' attribute.
-k Keep postgresql identifiers case.
-? Display this help screen.