Skip to content

Conversation

@SpectraL519
Copy link
Owner

  • Added an argument_group class with the following attribute setters:
    • required - at least one argument from the group must be used
    • mutually_exclusive - at most one argument from the group can be used
  • Added an add_group method to argument_parser
  • Added new overloads for the add_optional_argument and add_flag functions with an additional group parameter
  • Aligned the final parsing validation logic to properly verify the requirements of defined argument groups
  • Removed the program_name attribute setter from argument_parser and added the name parameter to the class constructor to enforce the program name's presence in a parser instance

Copy link
Owner Author

@SpectraL519 SpectraL519 left a comment

Choose a reason for hiding this comment

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

bump project version

Copy link
Owner Author

@SpectraL519 SpectraL519 left a comment

Choose a reason for hiding this comment

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

ok

@SpectraL519 SpectraL519 merged commit daaaf05 into cpp-ap-v3 Sep 23, 2025
9 checks passed
@SpectraL519 SpectraL519 deleted the argument-groups branch September 23, 2025 21:16
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