diff --git a/examples/test7.cpp b/examples/test7.cpp index 37f5c7d..b4ab6de 100644 --- a/examples/test7.cpp +++ b/examples/test7.cpp @@ -19,16 +19,18 @@ int main(int argc, char** argv) allowed.push_back("bart"); allowed.push_back("lisa"); allowed.push_back("maggie"); + ValuesConstraint vallowed( allowed ); - MultiArg nameArg("n","name","Name to print. This is a long, nonsensical message to test line wrapping. Hopefully it works.",true,allowed); + MultiArg nameArg("n","name","Name to print. This is a long, nonsensical message to test line wrapping. Hopefully it works.",true,&vallowed); cmd.add( nameArg ); vector iallowed; iallowed.push_back(1); iallowed.push_back(2); iallowed.push_back(3); + ValuesConstraint iiallowed( iallowed ); - UnlabeledMultiArg intArg("times","Number of times to print",iallowed); + UnlabeledMultiArg intArg("times","Number of times to print",&iiallowed); cmd.add( intArg ); // Ignore the names and comments! These args mean nothing (to this