Skip to content

Conversation

@SpectraL519
Copy link
Owner

@SpectraL519 SpectraL519 commented Sep 21, 2025

  • Removed the AP_UNKNOWN_FLAGS_AS_VALUES macro support
  • Introduced the unknown_policy discriminator type with the following values:
    • fail (default): throw an exception when an unknown argument is encountered
    • warn: issue a warning when an unknown argument is encountered
    • ignore: ignore unknown arguments
    • as_values: treat unknown arguments as positional values
  • Added an unknown_arguments_policy method to the argument_parser class
  • Aligned the tokenization and parsing logic to properly handle the new unknown argument flags handling policies
  • Renamed the print_config action and method of argument_parser to print_help
  • Changed the value type of the predefined help argument from bool to none_type

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 87ede8f into cpp-ap-v3 Sep 21, 2025
9 checks passed
@SpectraL519 SpectraL519 deleted the runtime-unknown-handling-method branch September 21, 2025 09:21
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