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

Function needs

include/CLI/Option.hpp:485–490  ·  view source on GitHub ↗

Sets required options

Source from the content-addressed store, hash-verified

483
484 /// Sets required options
485 Option *needs(Option *opt) {
486 if(opt != this) {
487 needs_.insert(opt);
488 }
489 return this;
490 }
491
492 /// Can find a string if needed
493 template <typename T = App> Option *needs(std::string opt_name) {

Callers

nothing calls this directly

Calls 1

get_option_no_throwMethod · 0.80

Tested by

no test coverage detected