Added enum in parseCommand