def _port_range_callback(option, opt_str, value, parser):
 try:
  ports = _parse_port_range_list(value)
 except ValueError as e:
  parser.error(('%s: invalid port range list %r: \n%s' % (opt_str, value, e.args[0])))
 setattr(parser.values, option.dest, ports)

def _port_range_callback ( option , opt_str , value , parser ) : try : ports = _parse_port_range_list ( value ) except ValueError as e : parser . error ( ( '%s: invalid port range list %r: \n%s' % ( opt_str , value , e . args [ 0 ] ) ) ) setattr ( parser . values , option . dest , ports )
callback to parse --ssh-bind-ports .