Add flag command help and improve command parser