init the readline function after parsing the command line options