MCPcopy Create free account
hub / github.com/CLIUtils/CLI11 / required

Method required

include/CLI/Option.hpp:118–121  ·  view source on GitHub ↗

Set the option as required

Source from the content-addressed store, hash-verified

116
117 /// Set the option as required
118 CRTP *required(bool value = true) {
119 required_ = value;
120 return static_cast<CRTP *>(this);
121 }
122
123 /// Support Plumbum term
124 CRTP *mandatory(bool value = true) { return required(value); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected