cli: add standard option processing to config, help and setup