Only set timings object if timings cli option is set
MODIFY
asciidoctorj-core/src/main/java/org/asciidoctor/cli/AsciidoctorInvoker.java
asciidoctorj-core/src/main/java/org/asciidoctor/cli/AsciidoctorInvoker.java
@@ -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()) {

Only set timings object if timings cli option is set