Justin Bogner
2014-Feb-27 21:26 UTC
[LLVMdev] CommandLine handling of -help and -version options
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?
Chandler Carruth
2014-Feb-27 21:34 UTC
[LLVMdev] CommandLine handling of -help and -version options
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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140227/45b2529b/attachment.html>
Chris Lattner
2014-Feb-28 08:16 UTC
[LLVMdev] CommandLine handling of -help and -version options
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-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140228/82cf974e/attachment.html>
Apparently Analagous Threads
- [LLVMdev] GCC compatibility code coverage issue .
- Building LLVM's fuzzers
- [LLVMdev] Problem with InsertPointGuard ABI?
- Compiling for AArch64: CommandLine Error: Option 'aarch64-branch-relax' registered more than once!
- CommandLineParser problems with llvm trunk?