Through the command line using -D, the application should receive parameters, for example, such -Dtest="true" or -Dmyarray="one,two,five" (I don’t remember how to correctly specify multiple values). And there are a lot of possible parameters, individually checking each with System.getProperty(...) is not an option, I just need to add them to the filled PropertiesConfiguration (from Apache Commons), for which the logic has already been written (if there are conflicts, priority perperty from the command line).
How to do this with the Apache Commons CLI ? Did not find suitable examples in the network.
conf.properties? - Senior Pomidor