<div dir="ltr">I'm writing an interpreter for a scripting language, and using LLVM to make it actually a JIT compiler for better performance. Thus far, I'm using the handy command line parsing features in CommandLine.h.<div><br></div><div>There's a slight problem. The usual way for interpreters to handle their command lines is:</div><div><br></div><div>interpreter [interpreter options] script [script options]</div><div><br></div><div>So that e.g.</div><div><br></div><div>interpreter script -help</div><div><br></div><div>does not print the interpreter's help text, it gets passed to the script as an instruction to print the script's help text.</div><div><br></div><div>But the LLVM command line parser doesn't do that; it always picks up the options regardless of whether they are leading or trailing.</div><div><br></div><div>Is there a way to get the command line parser to not pick up any options that come after the file name argument?</div></div>