(self, value, param, ctx)
Validate and parse band index.
Validate and parse band index.
Validate and parse band index .
def convert(self, value, param, ctx):
        """Validate and parse band index."""
        try:
            bands = [int(x) for x in value.split(",")]
            assert all(b > 0 for b in bands)
            return bands

        except (ValueError, AttributeError, AssertionError):
            raise click.ClickException(
                "bidx must be a string of comma-separated integers (> 0), "
                "representing the band indexes."
            )
def convert ( self , value , param , ctx ) : try : bands = [ int ( x ) for x in value . split ( "," ) ] assert all ( b > 0 for b in bands ) return bands except ( ValueError , AttributeError , AssertionError ) : raise click . ClickException ( "bidx must be a string of comma-separated integers (> 0), " "representing the band indexes." )