a simple command line tool using C++