Trigger the pre_parse callback if needed
| 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() { |
no test coverage detected