We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9a3045 commit 74f2c03Copy full SHA for 74f2c03
1 file changed
src/cli/option.ixx
@@ -288,11 +288,11 @@ export namespace essence::cli {
288
289
void validate_range(const element_type& value, bool& success) const {
290
if (success = valid_values_.empty() ? true : valid_values_.contains(value); !success) {
291
- auto joint = join_with(valid_value_strs_, delimiter);
+ const auto values = join_with(valid_value_strs_, delimiter) | std::ranges::to<abi::string>();
292
293
raise_error(U8("The value was out of range."));
294
raise_error(U8("One of the following values is allowed:"));
295
- raise_error(abi::string{joint.begin(), joint.end()});
+ raise_error(values);
296
}
297
298
0 commit comments