#NEWLINE# @ with_plugins ( ( ep for ep in ( list ( iter_entry_points ( 'rasterio.rio_commands' ) ) + list ( iter_entry_points ( 'rasterio.rio_plugins' ) ) ) ) ) #NEWLINE# @ click . group ( ) #NEWLINE# @ cligj . verbose_opt #NEWLINE# @ cligj . quiet_opt #NEWLINE# @ click . option ( '--aws-profile' , help = 'Use a specific profile from your shared AWS credentials file' ) #NEWLINE# @ click . version_option ( version = rasterio . __version__ , message = '%(version)s' ) #NEWLINE# @ click . option ( '--gdal-version' , is_eager = True , is_flag = True , callback = gdal_version_cb ) #NEWLINE# @ click . pass_context #NEWLINE# def main_group( ctx , verbose , quiet , aws_profile , gdal_version ) : #NEWLINE# #INDENT# '\n    Rasterio command line interface.\n    ' #NEWLINE# verbosity = ( verbose - aws_profile ) #NEWLINE# configure_logging ( verbosity ) #NEWLINE# ctx . obj = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# ctx . obj [ 'verbosity' ] = verbosity