[PATCH] Option parsing: support case-insensitive option matching.

Hans Wennborg hans at chromium.org
Mon Aug 26 15:42:15 PDT 2013


  > I noticed that this patch changes the order of options shown by "--help". Before this patch the options are sorted in asciibetical order, but with this patch they are sorted in a case insensitive manner.
  >
  > So I took a look at other tools to see if it's a bad thing. GNU tools seems to list options in a case insensitive manner if --help is given; I tested with sort, od and ls (gcc shows options in some random order though). So are true for non-GNU commands, such as Python or Ruby. Thus, I don't think changing the sort order is going to be a problem, but correct me if there's a concern.

  I think that's fine. And I think sorting the options this way is less confusing actually.

http://llvm-reviews.chandlerc.com/D1485



More information about the llvm-commits mailing list