Open etam opened 2 years ago
I second this request. I just took me a while to understand how it works. Perhaps provide an example:
Show available versions: alts -lnode
Switch to version 14: alts -u -n node -p 14
I think the confusion is caused by the word "priority". The mental model my head came up with actually assumed that something called "priority" may not be unique. In alts however priority is basically also a unique key. So selecting a default based on id aka priority makes sense.
We could call this "id" instead of "priority". Priority is mostly used to mirror the update-alternatives definition. Maybe we have too many priorities everywhere :laughing:
alts -h
says:alts -l iptables
says:1) It's not clear which priority value makes which choice the more important one. I guess higher value means higher priority. For contrast there are systems, where lower value is higher priority (for example zypper repos). 2) It's not clear how to change the alternative. I would assume I should provide the target value, but help only mentions
-p alt_priority
. Does that mean that targets must have a distinct priority values and are identified by it?