Move Scanner.in stuff into CmdLine

Since handling text from the commandline is a responsibillity of
CmdLine class I moved the part of the code there.