Bash completion for GDAL utilities
|Reported by:||gpasero||Owned by:||warmerdam|
|Cc:||antonio, Bas Couwenberg, gpasero|
I would like to contribute a python script to generate bash completion for GDAL utilities (gdal_translate, gdalwarp,...). Only OGR utils are missing, I'll add them soon. The completion works by proposing :
- options keys when they start with a '-'
- pixels types when the previous key is '-ot'
- GDAL drivers when the previous key is '-of' or '--format' (the list of drivers is evaluated at completion time).
You can have a preview of this script (see attachment) If the generation script can be integrated to the sources, I would like to know the expected header for copyright and author information.
Feel free to give your feedback,