If a subcommand requires a config value to be set, then check it.

Fixes #663