##### SUMMARY
See https://github.com/ansible/ansible/blob/88d8cf8197c53edd3bcdcd21429eb4c2bfbf0f6a/lib/ansible/module_utils/basic.py#L699-L706

##### ISSUE TYPE
- Bug Report

##### COMPONENT NAME
lib/ansible/module_utils/basic.py

##### ANSIBLE VERSION
```paste below
2.9
devel
```

if spec is None:
            spec = self.argument_spec
        if param is None:
            param = self.params
        
        alias_warnings = []
        alias_results, self._legal_inputs = handle_aliases(spec, param, alias_warnings=alias_warnings)
        for option, alias in alias_warnings:
            self._warnings.append('Both option %s and its alias %s are set.' % (option_prefix + option, option_prefix + alias))
        deprecated_aliases = []
        for i in spec.keys():
            if 'deprecated_aliases' in spec[i].keys():
                for alias in spec[i]['deprecated_aliases']:
                    deprecated_aliases.append(alias)
        for deprecation in deprecated_aliases:
            if deprecation['name'] in param.keys():
                self._deprecations.append(
                    {'msg': "Alias '%s' is deprecated. See the module docs for more information" % deprecation['name'],
                     'version': deprecation['version']})
        return alias_results
    def _handle_no_log_values(self, spec=None, param=None):