fix indent
getopt
getopt
fix
simplify output
test cases