-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected nonzero return code from .py utilities with --help or --version #8717
Comments
5 tasks
rouault
added a commit
to rouault/gdal
that referenced
this issue
Nov 15, 2023
…--version and --help return 0 error code (fixes OSGeo#8717)
rouault
added a commit
to rouault/gdal
that referenced
this issue
Nov 15, 2023
…--version and --help return 0 error code (fixes OSGeo#8717)
rouault
added a commit
that referenced
this issue
Nov 16, 2023
gdal_sieve.py/gdalattachpct.py/gdalcompare.py/gdalmove.py: make sure --version and --help return 0 error code (fixes #8717)
rouault
added a commit
that referenced
this issue
Nov 16, 2023
…--version and --help return 0 error code (fixes #8717)
rouault
added a commit
that referenced
this issue
Nov 17, 2023
[Backport release/3.8] gdal_sieve.py/gdalattachpct.py/gdalcompare.py/gdalmove.py: make sure --version and --help return 0 error code (fixes #8717)
ralphraul
pushed a commit
to 1SpatialGroupLtd/gdal
that referenced
this issue
Mar 11, 2024
…--version and --help return 0 error code (fixes OSGeo#8717)
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior and actual behavior.
Some of the
.py
utilities of GDAL (gdalattachpct.py
,gdal_sieve.py
etc.) return a nonzero code when called with--help
and/or--version
. This is rather problematic in CI, see conda-forge/gdal-feedstock#835 and conda-forge/gdal-feedstock#853.Some of these utilities were fixed in #8676, but a few still have issues. I've systematically tested GDAL 3.8.0 with the results below:
Steps to reproduce the problem.
Call
NAME_OF_THE_UTILITY.py --help
or
NAME_OF_THE_UTILITY.py --version
and check the return value.
Operating system
Tested on Windows 10, x86-64, but is probably cross-platform.
GDAL version and provenance
Tested with GDAL 3.8.0 from conda-forge, build
py312hb5f3cee_1
.The text was updated successfully, but these errors were encountered: