Closed wh81752 closed 3 years ago
Ah, I got it. There is no such thing as option -h
. The behaviour is just to render usage / help info on any unsupported option.
Hmm, I guess it is good style to follow GNU command line standards https://www.gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
Btw:
> asciidoctor-web-pdf --version
Asciidoctor Web PDF 1.0.0-alpha.12 using Asciidoctor.js 2.2.1 (Asciidoctor 2.0.12) [https://asciidoctor.org]
Runtime Environment (node v12.18.1 on darwin)
CLI version 3.4.0
while
/Users/geronimo1/bin/asciidoctor-web-pdf -h 2>&1 | fgrep -- version
i.e. usage info does not list option --version
.
Upstream issue: https://github.com/asciidoctor/asciidoctor-cli.js/issues/149
With @asciidoctor/core
3.5.0:
$ asciidoctor-web-pdf -h 2>&1 | fgrep -- --help
--help print a help message
Option -h (help) does not list itself as option, i.e.