common-cli: CLI framework

javadoc is needed for public methods.