Skip to content

fix: update parseArgs tests to match new null-return behavior#132

Merged
julianbenegas merged 1 commit intomainfrom
forums/fix-parseargs-tests-2de69
Feb 1, 2026
Merged

fix: update parseArgs tests to match new null-return behavior#132
julianbenegas merged 1 commit intomainfrom
forums/fix-parseargs-tests-2de69

Conversation

@julianbenegas
Copy link
Member

The parseArgs function now returns null and prints help instead of
throwing errors for invalid input. This is better UX for a CLI tool
since users see helpful usage info instead of stack traces.

Updated 6 tests to expect null returns:

  • Missing -- separator
  • Missing command after --
  • Missing repo
  • -ref flag without value
  • -v flag without value
  • Unknown flag

The parseArgs function now returns null and prints help instead of
throwing errors for invalid input. This is better UX for a CLI tool
since users see helpful usage info instead of stack traces.

Updated 6 tests to expect null returns:
- Missing -- separator
- Missing command after --
- Missing repo
- -ref flag without value
- -v flag without value
- Unknown flag
@vercel
Copy link
Contributor

vercel bot commented Feb 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
forums Ready Ready Preview, Comment Feb 1, 2026 8:49pm

@julianbenegas julianbenegas merged commit 72e50c6 into main Feb 1, 2026
4 checks passed
@julianbenegas julianbenegas deleted the forums/fix-parseargs-tests-2de69 branch February 1, 2026 20:50
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.

1 participant