add verify code input of cli

Signed-off-by: xiehuc <xiehuc@gmail.com>
add fflush to cli

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