generate choices for `--gui` configurable from real mapping

typo prevented `--gui tk` from working, even though it is supported. Should
prevent similar bugs in the future.

closes #4156

should be backported to 1.1