asciidoctor / asciidoctorj

:coffee: Java bindings for Asciidoctor. Asciidoctor on the JVM!
http://asciidoctor.org
Apache License 2.0
625 stars 173 forks source link

CLI throws exception when rendering document from stdin #1105

Closed robertpanzer closed 2 years ago

robertpanzer commented 2 years ago

After fixing #865 it was possible to read input from stdin and write the output to stdout or a file by running it with asciidoctorj -.. However, at some point a regression was introduced that resulted in still reading input from stdin and writing to stdout, but after that AsciidoctorJ still tries to interpret - as a file name and then writes an exception to stderr.