ruiu added a comment. Why don't you just strip the leading dash? I think the first argument is always flags (e.g. `ar somesome.a` doesn't make sense), so we could always handle `ar -something` as if `ar something`. https://reviews.llvm.org/D39538