Eric Pouech : cmd: Factorize code for reading a new line for parser.