Russell Wallace via llvm-dev
2016-Mar-28 20:10 UTC
[llvm-dev] Script interpreters and trailing options
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. There's a slight problem. The usual way for interpreters to handle their command lines is: interpreter [interpreter options] script [script options] So that e.g. interpreter script -help does not print the interpreter's help text, it gets passed to the script as an instruction to print the script's help text. But the LLVM command line parser doesn't do that; it always picks up the options regardless of whether they are leading or trailing. Is there a way to get the command line parser to not pick up any options that come after the file name argument? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160328/343af86a/attachment.html>