Skip to content

Conversation

@drewhoffer
Copy link
Contributor

@drewhoffer drewhoffer commented Sep 9, 2025

Check first if the user just wants to see the version of their linter. If so, print and exit.

Closes #437

Copy link
Owner

@marcoroth marcoroth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @drewhoffer, thanks for opening this pull request!

I was about to merge this, when I realized we have very similar code here already:

if (values.version) {
console.log("Versions:")
console.log(` ${name}@${version}, ${Herb.version}`.split(", ").join("\n "))
process.exit(0)
}

Would you mind porting that over there? Thank you!

@marcoroth marcoroth changed the title Add --version switch for @herb-tools/linter Linter: Fix --version flag for CLI Sep 16, 2025
@marcoroth marcoroth added bug Something isn't working linter labels Sep 16, 2025
@marcoroth marcoroth merged commit e7f21b9 into marcoroth:main Oct 5, 2025
1 check passed
asilano pushed a commit to fac/herb that referenced this pull request Oct 21, 2025
Closes marcoroth#437

---------

Co-authored-by: Marco Roth <marco.roth@intergga.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working linter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linter: Running Linter CLI with --version crashes

2 participants