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

Method _trigger_pre_parse

simcore/framework/src/cli/cli.hpp:7171–7187  ·  view source on GitHub ↗

Trigger the pre_parse callback if needed

Source from the content-addressed store, hash-verified

7169
7170 /// Trigger the pre_parse callback if needed
7171 void _trigger_pre_parse(std::size_t remaining_args) {
7172 if (!pre_parse_called_) {
7173 pre_parse_called_ = true;
7174 if (pre_parse_callback_) {
7175 pre_parse_callback_(remaining_args);
7176 }
7177 } else if (immediate_callback_) {
7178 if (!name_.empty()) {
7179 auto pcnt = parsed_;
7180 auto extras = std::move(missing_);
7181 clear();
7182 parsed_ = pcnt;
7183 pre_parse_called_ = true;
7184 missing_ = std::move(extras);
7185 }
7186 }
7187 }
7188
7189 /// Get the appropriate parent to fallthrough to which is the first one that has a name or the main app
7190 App *_get_fallthrough_parent() {

Callers 3

_parse_positionalMethod · 0.80
_parse_subcommandMethod · 0.80
_parse_argMethod · 0.80

Calls 2

clearFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected