leandron added a comment. @cmatthews: I first tried using argparse, but ran into issues, as explained below. So, instead I decided to try using click to fix PR32789. Does this patch look like what you had in mind? https://reviews.llvm.org/D33541