1
0
forked from Alepha/Alepha

Unify the evaluation helpers implementations.

This commit is contained in:
2023-10-20 03:54:22 -04:00
parent f5840e15ab
commit 0b63658815
18 changed files with 204 additions and 238 deletions

View File

@ -2,15 +2,19 @@ static_assert( __cplusplus > 2020'00 );
#include "ProgramOptions.h"
#include <Alepha/Utility/evaluation_helpers.h>
namespace
{
using namespace Alepha::literals::option_literals;
using namespace std::literals::string_literals;
using namespace Alepha::Utility::exports::evaluation_helpers;
int optionA= 42;
std::optional< std::string > optionB;
auto init= Alepha::enroll <=[]
auto init= enroll <=[]
{
--"set-a"_option << optionA << "The option is an integer. !default!";
--"set-b"_option << optionB << "The option is a string, no defaults.";