added tools.cli based command line argument parsing code.