Allow setting truncate length through `globalOptions.truncateLength`

closes #244
fixed.