Add ability to make an accelname required.

This will help test #30866 (moved).