postlight / parser

📜 Extract meaningful content from the chaos of a web page
https://reader.postlight.com
Apache License 2.0
5.4k stars 442 forks source link

Add --version CLI flag #610

Closed pirate closed 2 years ago

pirate commented 3 years ago

We use mercury-parser over at ArchiveBox, and one of the things AB expects of all its dependencies is the ability to get the version by calling command --version.

This PR just adds that ability to this project.

pirate commented 10 months ago

Did this get reverted somehow? It seems as if the --version flag doesn't work on the latest postflight-parser 2.2.3

Nvm, I see what happened, the arg is missing from the bottom. Opened a new PR to fix it: https://github.com/postlight/parser/pull/750