I'd suggest to search in all dependency types if e.g. '--requires --recommends'  are given. Thus attr could be a collection of attribute values to search, not a single value.