Allow selecting the result format

Signed-off-by: Zhaofeng Li <hello@zhaofeng.li>
v0.1.4

Signed-off-by: Zhaofeng Li <hello@zhaofeng.li>