mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-13 17:53:11 +02:00
Add back custom add_choices function to argparse
This commit is contained in:
parent
9eb2b13833
commit
4248fba976
@ -919,6 +919,12 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
template <typename T> Argument &add_choices(std::vector<T> &&choices) {
|
||||
for (T &choice : choices)
|
||||
add_choice(std::forward<T>(choice));
|
||||
return *this;
|
||||
}
|
||||
|
||||
template <typename T, typename... U>
|
||||
Argument &choices(T &&first, U &&... rest) {
|
||||
add_choice(std::forward<T>(first));
|
||||
|
Loading…
x
Reference in New Issue
Block a user