Skip to content

Conversation

@kricsleo
Copy link
Member

@kricsleo kricsleo commented Apr 8, 2025

resolves #145

This PR adds support for overriding --version/--help when a custom version/help argument is defined.

If users define their own version/help argument, the default behavior (logging the version/showing usage) will be skipped, and their custom command will run instead.

This applies to both top-level commands and sub-commands.

@codecov
Copy link

codecov bot commented Apr 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@6341dc3). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #196   +/-   ##
=======================================
  Coverage        ?   94.15%           
=======================================
  Files           ?        7           
  Lines           ?      530           
  Branches        ?      176           
=======================================
  Hits            ?      499           
  Misses          ?       31           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A way to override --version

1 participant