Remove the useless print
Introduce the -o stdout printing flag
Rewrite the commands and flags