Skip to content

Can't pass vectors arguments such as std::vector<std::string> to commands in v2.0 #146

Answered by daniele77
altairwei asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately mixing std::vector<std::string> with other parameter types is not currently supported.

As a workaround, you can use the first parameter of the vector as an int, by converting it from string in your code.

However, if you think this can be a useful feature, you can open an issue with a feature request (maybe you can also consider sponsoring the project using the heart icon on top of the page to speed up this development).

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by altairwei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #145 on April 19, 2022 09:30.