I like the thoughts about this but this was mainly made for spawn attacks as mentioned in the description of the pull request.
But I can imagine more areas for this:
A moving mine which you can deploy (with morph) and can't be selected afterwards.
Mines which can be built, but cant be selected and commanded.

Bees which can be produced in a beehive and will only attack if enemies get near. So you can't (really) use them to attack.
All in all this is mainly meant to be used for units which will attack nearby enemies ( and move to them unlike the attack-stopped command aka Hold Position )
When you use this with spawn attack i would also suggest to give the spawned units a small life time with negative regeneration of hp. So they are no real units in the end.
@MoLAoS Non-Commandable units will auto-attack if there is a enemy nearby for example. So they CAN use the commands, but you can't GIVE them the commands
@Omega Nice idea. I didn't think about scenarios when i made this. Non-selectable could be useful for scenarios too! If you want to make a scenario like the island from tiger you could set the animals non-selectable to get a more realistic feeling, because you can't see how much hp the animal have for example.
In Addition I forgot about the AI while programming so I suppose the AI is still able to control those units. I will try this out and fix it.