Sets excluded options
| 3836 | |
| 3837 | /// Sets excluded options |
| 3838 | Option *excludes(Option *opt) { |
| 3839 | if (opt == this) { |
| 3840 | throw(IncorrectConstruction("and option cannot exclude itself")); |
| 3841 | } |
| 3842 | excludes_.insert(opt); |
| 3843 | |
| 3844 | // Help text should be symmetric - excluding a should exclude b |
| 3845 | opt->excludes_.insert(this); |
| 3846 | |
| 3847 | // Ignoring the insert return value, excluding twice is now allowed. |
| 3848 | // (Mostly to allow both directions to be excluded by user, even though the library does it for you.) |
| 3849 | |
| 3850 | return this; |
| 3851 | } |
| 3852 | |
| 3853 | /// Can find a string if needed |
| 3854 | template <typename T = App> |
nothing calls this directly
no test coverage detected