citty
citty copied to clipboard
feat: allow overriding `--version` and `--help` with custom args
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 Report
All modified and coverable lines are covered by tests :white_check_mark:
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
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.