--debug option can optionally be Boolean. Fixes GH-983.