mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-09-13 06:07:07 -04:00
tweaked for usage
This commit is contained in:
parent
e1d1339530
commit
5ae5f57bbb
@ -10,7 +10,7 @@ int main(int argc, char** argv)
|
||||
try {
|
||||
|
||||
// Define the command line object.
|
||||
CmdLine cmd("Command description message", ' ', "0.9");
|
||||
CmdLine cmd("Command description message. This is a long multi-line message meant to test line wrapping. This is more text that doesn't really do anything besides take up lots of space that otherwise might be used for something real. That should be enough, don't you think?", ' ', "0.9");
|
||||
|
||||
vector<string> allowed;
|
||||
allowed.push_back("homer");
|
||||
@ -19,7 +19,7 @@ int main(int argc, char** argv)
|
||||
allowed.push_back("lisa");
|
||||
allowed.push_back("maggie");
|
||||
|
||||
MultiArg<string> nameArg("n","name","Name to print",true,allowed);
|
||||
MultiArg<string> nameArg("n","name","Name to print. This is a long, nonsensical message to test line wrapping. Hopefully it works.",true,allowed);
|
||||
cmd.add( nameArg );
|
||||
|
||||
vector<int> iallowed;
|
||||
|
Loading…
x
Reference in New Issue
Block a user