try adding a test for failure with macos arm precompile (#1238)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Philip Top
2025-10-24 05:36:00 -07:00
committed by GitHub
parent 4d78aa30d6
commit 8b1d067374
7 changed files with 47 additions and 9 deletions

View File

@@ -4,8 +4,6 @@
//
// SPDX-License-Identifier: BSD-3-Clause
#define CLI11_ENABLE_EXTRA_VALIDATORS 1
#pragma once
#if (defined(CLI11_ENABLE_EXTRA_VALIDATORS) && CLI11_ENABLE_EXTRA_VALIDATORS == 1) || \
(!defined(CLI11_DISABLE_EXTRA_VALIDATORS) || CLI11_DISABLE_EXTRA_VALIDATORS == 0)

View File

@@ -325,6 +325,9 @@ CLI11_INLINE void Option::run_callback() {
current_option_state_ = option_state::callback_run;
if(callback_) {
const results_t &send_results = proc_results_.empty() ? results_ : proc_results_;
if(send_results.empty()) {
return;
}
bool local_result = callback_(send_results);
if(used_default_str) {
// we only clear the results if the callback was actually used