Skip to content

feat: allow overriding --version and --help with custom args #196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

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