Uh oh!
There was an error while loading. Please reload this page.
fix: do not prompt for modules if an empty list is provided - #888
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@## main #888 +/- ##
=======================================
Coverage ? 12.98% =======================================
Files ? 69 Lines ? 3588 Branches ? 100 =======================================
Hits ? 466 Misses ? 3091 Partials ? 31 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
commit: |
maybe we could support and document '--no-modules' (which should work implicitly) |
cjpearson
commented
May 24, 2025
That could definitely work too. I think it's more direct, but I wasn't sure how to handle if it's combined with |
danielroe
commented
May 24, 2025
both i think. citty handles --no prefix for all args i think ... |
cjpearson
commented
Jun 1, 2025
It seems that it's partially supported. With a small change, citty will only print the usage for the |
🔗 Linked issue
Resolves#887
❓ Type of change
📚 Description
When
--modulesis not used,ctx.args.moduleswill beundefinedand when--modules ''or--modulesis used, it will be an empty string. With this change, we will only prompt in theundefinedcase, allowing users to explicitly skip the prompt if they want.