diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 0911b56f..38409088 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -3,6 +3,13 @@ Change Log All notable changes to ``sentinelsat`` will be listed here. +[0.9.X] - 2017-MM-DD +------- + +Deprecated +~~~~~ +- ``--sentinel1`` and ``--sentinel2`` will be removed with the next major release + [0.9.1] - 2017-03-06 ------- diff --git a/sentinelsat/scripts/cli.py b/sentinelsat/scripts/cli.py index 0dc78532..5e8311a8 100644 --- a/sentinelsat/scripts/cli.py +++ b/sentinelsat/scripts/cli.py @@ -62,10 +62,10 @@ def cli(): """) @click.option( '--sentinel1', is_flag=True, - help='Limit search to Sentinel-1 products.') + help='DEPRECATED: Please use --sentinel instead. Limit search to Sentinel-1 products.') @click.option( '--sentinel2', is_flag=True, - help='Limit search to Sentinel-2 products.') + help='DEPRECATED: Please use --sentinel instead. Limit search to Sentinel-2 products.') @click.option( '-c', '--cloud', type=int, help='Maximum cloud cover in percent. (Automatically sets --sentinel2)') @@ -90,8 +90,10 @@ def search( "cloudcoverpercentage": "[0 TO %s]" % cloud}) elif sentinel2: search_kwargs.update({"platformname": "Sentinel-2"}) + logger.info('DEPRECATED: Please use --sentinel instead') elif sentinel1: search_kwargs.update({"platformname": "Sentinel-1"}) + logger.info('DEPRECATED: Please use --sentinel instead') if query is not None: search_kwargs.update(dict([i.split('=') for i in query.split(',')]))