def validate_id_or_name(record_name = nil)
      child_options = IdNameOptionsValidator.build_child_options(record_name)

      validate_options do
        any(*child_options).required
      end
    end
def validate_id_or_name(record_name = nil)
      child_options = IdNameOptionsValidator.build_child_options(record_name)

      validate_options do
        any(*child_options).required
      end
    end
This method simply checks that either id or name is supplied

 Some examples:

 # checks for a --id or --name option
 validate_id_or_name
 # checks for --content-view-id or --content-view-name
 validate_id_or_name :content_view