$ sudo dnf --releaserver=22 makecache [sudo] password for brain: No such command: --releaserver=22. Please use /bin/dnf --help It could be a DNF plugin command, try: "dnf install 'dnf-command(--releaserver=22)'" for example, command: dnf distro-sync --releaserver=23 will download repos for f22 and only then prints that --releaserver is not a command.
In order to parse the arguments more intelligently we need all dnf and plugin commands to assign their subparser to DNF ArgumentParser [1]. Lets this be a tracker bug for such replacement. [1] https://github.com/rpm-software-management/dnf/pull/348
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle. Changing version to '24'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.