phase_no should be incremented before anything else

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
add cli option

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
Add cfg module

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
Merge branch 'feature/add-record-option' into develop