To generate that automatically, we would need to establish a naming scheme. But as it is very rare, it might not be worth it.
You could write a script that generates the code.
I don’t think it is that rare, several OpenType features need alternate substitutions e.g. ssty feature for math fonts, and rand feature (which is supported by HarfBuzz and Affinity Publisher), so I think establishing a syntax for this would still be a good idea. I’d suggest some thing simple as xxxxNNNN where xxxx is the feature tag, and NNNN the alternate number, then glyph can be named salt01…salt55, ssty1…ssty2, rand001…rand999 etc.