factor out cli stuff from actual analyzer