cbeust / jcommander

Command line parsing framework for Java
Apache License 2.0
1.97k stars 334 forks source link

Refactor Parameterized and ParameterDescription class to improve separation of concern #586

Open anonstudy opened 3 months ago

anonstudy commented 3 months ago

This PR makes the following changes:

ParameterDescription.java

This PR refactors the addValue method by extracting the logic for handling collection type parameters into a separate method.

Changes:

Rationale:

Parameterized.java

This PR refactors the parseArg method by extracting the field analysis logic into a separate method.

Changes:

Additionally, it refactors the parseArg method by extracting the method analysis logic into a separate method.

Changes:

Rationale:

Note: