Closed abelsromero closed 5 years ago
It's not really an error, it's the "verbose" mode and since you didn't provide any other arguments the command is "invalid" so in this case we display the usage/help.
If you want to display the version, you need to use the uppercase -V
So either:
$ node_modules/asciidoctor-pdf/bin/asciidoctorjs-pdf -V
or:
$ node_modules/asciidoctor-pdf/bin/asciidoctorjs-pdf --version
I got it, but nevertheless is confusing:
asciidoctor -v
asciidoctor-pdf -v
./node_modules/asciidoctor/bin/asciidoctor -v
All return the version, even when the prompt says to use capital V.
I see... it looks like I did it for the Asciidoctor.js CLI but this "feature" is not available here: https://github.com/asciidoctor/asciidoctor-cli.js/issues/57
I might have missed something... š¤
Actually I think it's already fixed on master: https://github.com/Mogztter/asciidoctor-pdf.js/blob/3ee47079489ec6b787386759786a48128d4485a7/lib/cli.js#L46-L51
I will release another alpha, stay tuned š
The new version is out:
$ asciidoctor-pdf -v
Asciidoctor PDF 1.0.0-alpha.2 using Asciidoctor.js 2.0.0 (Asciidoctor 2.0.6) [https://asciidoctor.org]
Runtime Environment (node v10.15.1 on linux)
CLI version 3.0.1
You are awesome!
After installing asciidoctor in a npm project with the following dependencies
I get the following error
when running
node_modules/asciidoctor-pdf/bin/asciidoctorjs-pdf -v
.Using
--version
works fine š