MCPcopy Create free account
hub / github.com/Tencent/TAD_Sim / excludes

Method excludes

simcore/framework/src/cli/cli.hpp:3838–3851  ·  view source on GitHub ↗

Sets excluded options

Source from the content-addressed store, hash-verified

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>

Callers

nothing calls this directly

Calls 3

get_option_no_throwMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected