get input from user

read the input and pass it to commandParser