Update CLI.cpp
Merge pull request #48 from pixie1/patch-48

Update CLI.cpp added error handling to CLI