[postgis-devel] loader/dumper and stderr

Markus Schaber schabi at logix-tt.com
Sat Oct 14 07:24:33 PDT 2006


Hi, Strk,

Markus Schaber wrote:

> strk at refractions.net wrote:
>> Theoretically stdout should be used when an explicit --help or -h
>> was given, stderr when it was triggered by an invalid invokation.
> 
> Hmm, -h us used for host setting in pgsql2shp. But I'll see that I get a
> constistend behaviour across those two utilities.

I just committed the change that both utilities display it on stdout
when invoked without any arguments, and when -? option is part of the
command line. They also exit(0) in this case.

In any case of error, they exit(2) and send usage to stderr.

Regards,
Markus

-- 
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org



More information about the postgis-devel mailing list