Skip to content
Snippets Groups Projects
Commit 4f1ac71d authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

show a list of element type names to command line

parent fa86894c
No related branches found
No related tags found
No related merge requests found
......@@ -55,8 +55,10 @@ int main (int argc, char* argv[])
TCLAP::ValueArg<unsigned> newIDArg("n", "new-material-id",
"new material id", false, 0, "number");
cmd.add(newIDArg);
std::vector<std::string> eleList(getMeshElemTypeStringsShort());
TCLAP::ValuesConstraint<std::string> allowedVals(eleList);
TCLAP::ValueArg<std::string> eleTypeArg("e", "element-type",
"element type", false, "", "element type");
"element type", false, "", &allowedVals);
cmd.add(eleTypeArg);
cmd.parse(argc, argv);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment