Can't choose multiple protocols using pacman-mirrors

in the documentation, they say you can choose multiple protocols and show this with an example using both https and http. In the pacman-mirrors v4.23.x this does not work, as you have to choose between one specific or all protocols:

$ sudo pacman-mirrors --api --protocols https,http
pacman-mirrors: error: argument -P/--proto/--protocols: invalid choice: 'https,http' (choose from 'all', 'http', 'https', 'ftp', 'ftps')

I also tried using [] and () or renaming the flag to --protocol/--proto/-P. Did this feature get removed and if yes, why are the docs not up-to-date?

Thanks for your time!

I don’t think comma as delimiter has ever been supported

pacman-mirrors -aP https http
1 Like

Oh, but why is this in the docs then?

Rank the current mirror pool using only https and http protocol
sudo pacman-mirrors --api --protocol https,http && sudo pacman -Syyu

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.