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

Function got_subcommand

include/CLI/App.hpp:987–990  ·  view source on GitHub ↗

Check to see if given subcommand was selected

Source from the content-addressed store, hash-verified

985
986 /// Check to see if given subcommand was selected
987 bool got_subcommand(const App *subcom) const {
988 // get subcom needed to verify that this was a real subcommand
989 return get_subcommand(subcom)->parsed_ > 0;
990 }
991
992 /// Check with name instead of pointer to see if subcommand was selected
993 CLI11_NODISCARD bool got_subcommand(std::string subcommand_name) const noexcept {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected