Only set timings object if timings cli option is set
@@ -79,9 +79,11 @@ public class AsciidoctorInvoker {
}
private void setTimingsMode(AsciidoctorCliOptions asciidoctorCliOptions, Options options) {
+ if (asciidoctorCliOptions.isTimings()) {
options.setOption("timings",
JRubyRuntimeContext.get().evalScriptlet("Asciidoctor::Timings.new"));
}
+ }
private void setVerboseLevel(AsciidoctorCliOptions asciidoctorCliOptions) {
if(asciidoctorCliOptions.isVerbose()) {
