Fixes Avoid throwing exception in CLI when reading input from stdin
MODIFY
CHANGELOG.adoc
CHANGELOG.adoc
@@ -21,6 +21,7 @@ Improvement::
Bug Fixes::
* Cell nodes do not inherit from StructuralNode (#1086) (@rahmanusta)
+* Avoid throwing an exception when using AsciidoctorJ CLI and reading input from stdin (#1105) (@AlexCzar)
Build Improvement::

MODIFY
asciidoctorj-core/src/main/java/org/asciidoctor/jruby/cli/AsciidoctorInvoker.java
asciidoctorj-core/src/main/java/org/asciidoctor/jruby/cli/AsciidoctorInvoker.java
@@ -149,6 +149,7 @@ public class AsciidoctorInvoker {
if (inputFiles.size() == 1 && "-".equals(inputFiles.get(0).getName())) {
asciidoctor.convert(readInputFromStdIn(), options);
+ return;
}
findInvalidInputFile(inputFiles)

Fixes #1105. Avoid throwing exception in CLI when reading input from stdin