Seperated cli from library to allow linking to a bin