add ParseCommand func

Signed-off-by: xushvai <xushvai@gmail.com>