Skip to content

Conversation

@kojix2
Copy link
Contributor

@kojix2 kojix2 commented Oct 19, 2025

Hello,
This pull request refactors part of the OptionParser#parse method into three private methods:

  • parse_arg_to_flag_and_value
  • handle_flag
  • remove_handled_args

The intention is that this change does not alter the program’s behavior in any way.

This refactoring is a preparatory step toward enabling short option combinations.
#10981

Thank you.

@kojix2
Copy link
Contributor Author

kojix2 commented Oct 28, 2025

These method names may not be ideal.
If you have better ideas, please feel free to suggest them.

  • parse_arg_to_flag_and_value
  • handle_flag
  • remove_handled_args

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants