From 4248fba976bb03fbf08834aa9e55e092f85065c5 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Tue, 4 Mar 2025 18:29:21 -0500 Subject: [PATCH] Add back custom add_choices function to argparse --- thirdparty/argparse/include/argparse/argparse.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/thirdparty/argparse/include/argparse/argparse.hpp b/thirdparty/argparse/include/argparse/argparse.hpp index e73da429c1..09a4f47f91 100644 --- a/thirdparty/argparse/include/argparse/argparse.hpp +++ b/thirdparty/argparse/include/argparse/argparse.hpp @@ -919,6 +919,12 @@ public: return *this; } + template Argument &add_choices(std::vector &&choices) { + for (T &choice : choices) + add_choice(std::forward(choice)); + return *this; + } + template Argument &choices(T &&first, U &&... rest) { add_choice(std::forward(first));