use OptionParser to improve command line tool.