mirror of
https://github.com/CLIUtils/CLI11.git
synced 2026-01-19 04:52:08 +00:00
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:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user