Open mskyttner opened 8 years ago
There is now a good example of supporting option at https://github.com/Inkimar/commons_cli_ex/blob/master/src/main/java/se/zanzibar/example/testingcli/Startup.java
Currently, the -h, --url and --infile options (the existing options in the current KeycloakAdmin client) would be nice to have support for.
Suggest using https://commons.apache.org/proper/commons-cli/ as it provides great CLI tool options like supporting standard GNU like long options such as "--help" and "-h" etc. See for example: https://github.com/Inkimar/commons_cli_ex. Also, credentials and other connection settings (endpoints, oauth credentials) should be loaded from a config file, ie dina.cfg, like the CollectionBatchTool does.