Skip to content

Mention on ogrinfo man page what the return value is #13938

@jidanni

Description

@jidanni

Feature description

$ ogrinfo -q test.vrt; echo $?
Warning 1: libXML: 0: Element 'SrcLayer': This element is not expected.
1: geometry (Measured Unknown (any))
ERROR 1: Failed to find layer 'heshun.addresses' on datasource 'heshun.addresses.geojson'.
2: heshun.addresses (None)
0

I wouldn't return 0 so easily in this case.

But either way, it still should be documented on the ogrinfo man page, like it is for cat(1),

$ info cat
   An exit status of zero indicates success, and a nonzero value indicates failure.

GDAL 3.10.3, released 2025/04/01. Old. Sorry.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions