cbeust / jcommander

Command line parsing framework for Java
Apache License 2.0
1.95k stars 332 forks source link

Multiple Default Providers #516

Open mkarg opened 3 years ago

mkarg commented 3 years ago

Sophisticated CLI tools allow the provision of multiple default sources, e. g. in a first step these tools will check environment variables, and if nothing found, they will check property files. It would be a very beneficial addition to jCommander to be able to register an ordered sequence of IDefaultProvider which will be checked, and the first default to be applied.

mkarg commented 3 years ago

@cbeust WDYT? If we will provide this, would you accept it?

cbeust commented 3 years ago

Sure, sounds useful!