handle flags with either ' ' or '=' separating the value

instead of only handling '='
also needs some shift cleverness
also add --help and -h options