comand line parser refactoring