[LLVMdev] CommandLine handling of -help and -version options

Justin Bogner mail at justinbogner.com
Fri Feb 28 11:14:37 PST 2014


Fixed in r202530.

Chris Lattner <clattner at apple.com> writes:
> Me neither.  This is probably my fault, feel free to fix it.
>
> -Chris
>
> On Feb 27, 2014, at 1:34 PM, Chandler Carruth <chandlerc at google.com> wrote:
>
>     I can't imagine a good reason for this.
>
>     On Thu, Feb 27, 2014 at 1:26 PM, Justin Bogner <mail at justinbogner.com>
>     wrote:
>    
>         Tools that use the LLVM CommandLine library seem to exit 1 when called
>         with -version or -help. This is strange and inconsistent with most
>         command line tools.
>        
>         Is there a reason we exit 1? Is anyone relying on this behaviour?
>         _______________________________________________
>         LLVM Developers mailing list
>         LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>         http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>     _______________________________________________
>     LLVM Developers mailing list
>     LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>     http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



More information about the llvm-dev mailing list