split cli to parser and handlers