mercredi 9 décembre 2015

Java: Design pattern for argument processing

I have a program in Java used as a command line application. I am using jopt for argument processing. When getting the values from Jopt the code gets ugly because of the of multiple cases depending of the values of argument to choose an execution path.

I was wondering if this case was already treated by some design pattern.

I have looked at the answers here but there is no clear solution proposed.

Aucun commentaire:

Enregistrer un commentaire