Closed kaby76 closed 6 months ago
I changed the way the cli tool determines its actual version, however for the antlr-format node package there's no such functionality like printing a version number. Third party package usually have no binary interface to print such information. You can, however, inspect its package.json file too.
npmjs.org has an antlr-format-cli: entry: https://www.npmjs.com/package/antlr-format-cli
This webpage displays the current version of 1.2.4. However, when I run the tool
antlr-format --version
from the command line, the tool outputs "1.0.1".The package.json for the cache,
c:\Users\Kenne\AppData\Roaming\npm\node_modules\antlr-format-cli\package.json
, contains the correct version:I am positive that I am running the correct version of the tool:
Rather than hardwire the version in the source code, I suggest it read the package.json for the version of the tool. In addition, I can't tell what the version of the package antlr-format itself may be. I also suggest printing this out as well.