Note: help and version output are generated by a naïve script which tries a few variants of
<command> --help, <command> -h etc. to find the command's help and version info.
Sometimes it gets lucky, sometimes it doesn't; if the output below looks wrong, it probably is.
gdal_polygonize.py --version (return code: 0)
GDAL 2.2.1, released 2017/06/23
gdal_polygonize.py -HELP (return code: 1)
gdal_polygonize [-8] [-nomask] [-mask filename] raster_file [-b band|mask]
[-q] [-f ogr_format] out_file [layer] [fieldname]