Closed not-my-profile closed 2 years ago
I fixed the first issue. I think the other behaviors are not really problematic.
Thanks! I agree that the third behavior is unlikely to cause much problems. The second one however might lead to confusion when users misspell a format, e.g:
$ pandoc --list-extensions=comonmark
-east_asian_line_breaks
for such mishaps an error message would be more userfriendly.
OK, can do that.
The CLI around formats and extensions behaves in some unexpected ways.
Passing an unknown format or extension to
-f
or-t
should make the command fail immediately instead of reading from stdin first (only to inevitably fail):Running
--list-extensions
with a format that does not exist should return an error:Specifying an extension that doesn't exist for a format that doesn't exist should probably report an unknown format error (but currently reports an unknown extension error):
Pandoc version? pandoc 2.16.2 on Linux