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

Method got_subcommand

simcore/framework/src/cli/cli.hpp:5856–5859  ·  view source on GitHub ↗

Check to see if given subcommand was selected

Source from the content-addressed store, hash-verified

5854
5855 /// Check to see if given subcommand was selected
5856 bool got_subcommand(const App *subcom) const {
5857 // get subcom needed to verify that this was a real subcommand
5858 return get_subcommand(subcom)->parsed_ > 0;
5859 }
5860
5861 /// Check with name instead of pointer to see if subcommand was selected
5862 bool got_subcommand(std::string subcommand_name) const { return get_subcommand(subcommand_name)->parsed_ > 0; }

Callers 1

to_configMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected