This change enables cl::Grouping for short options --
options with names of a single character. This is consistent with GNU
getopt behavior.
Details
Details
- Reviewers
rnk MaskRay - Commits
- rZORGcac74e3d275e: [CommandLine] Enable Grouping for short options by default. Part 4 of 5
rZORG0f44f41ce697: [CommandLine] Enable Grouping for short options by default. Part 4 of 5
rGcac74e3d275e: [CommandLine] Enable Grouping for short options by default. Part 4 of 5
rG0f44f41ce697: [CommandLine] Enable Grouping for short options by default. Part 4 of 5
rGf6eac2dd3b3a: [CommandLine] Enable Grouping for short options by default. Part 4 of 5
rL359917: [CommandLine] Enable Grouping for short options by default. Part 4 of 5
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 31143 Build 31142: arc lint + arc unit
Event Timeline
Comment Actions
Thank you for the patch series!
This is consistent with GNU getopt behavior.
This is not GNU specific :) It is POSIX Utility Syntax Guidelines 5 http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html
Comment Actions
Thanks for pointing that out.
While not mentioned here, this series of patches also deals with long options which I believe is a GNU thing -- at least I think that's true. In any case, the ultimate goal of these patches is to allow GNU compatibility.