parse options stupid format