parse a --debug switch
don't crash on mismatched options
add -j mode