Skip to content

Conversation

@DrewImm
Copy link
Member

@DrewImm DrewImm commented Mar 31, 2025

No description provided.

@DrewImm DrewImm requested a review from Copilot March 31, 2025 10:54
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses an issue where optionals with default values were not being correctly hydrated.

  • Added tests for default values for both positional and optional arguments.
  • Updated the argument parser to assign default values when options are not provided.
  • Refactored an error message for invalid option choices.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
test/spec/argument-parser.spec.ts Added tests to verify default hydration for positionals and optionals.
src/argument-parser.ts Introduced a loop to set default values for options and updated an error message format.

@DrewImm DrewImm merged commit 57459ac into dev Mar 31, 2025
@DrewImm DrewImm deleted the issue-25 branch March 31, 2025 11:09
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.

2 participants