I have code like the following
flags->add_option("--name", name_, "The name.")->required();
I want to be able to pass strings like "aa$p$aa" to the --name
parameter. However, this does not seem to work with CLI11, and the name gets truncated to just "aa". I need to escape the $
characters to properly read the strings. So aa\$p\$aa
works fine, and I get the expected string ("aa$p$aa").
Changing the function to add_flag()
does not work either.
Is there a way to be able to pass arbitrary strings to a parameter as with either function calls above?
Aucun commentaire:
Enregistrer un commentaire