From 3251c3e40d195702f8b709eca655e7a7090fda99 Mon Sep 17 00:00:00 2001 From: mes5k Date: Wed, 10 Sep 2008 18:29:46 +0000 Subject: [PATCH] updated note on xor --- docs/manual.xml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/docs/manual.xml b/docs/manual.xml index 752aee2..6d4ebc4 100644 --- a/docs/manual.xml +++ b/docs/manual.xml @@ -618,10 +618,8 @@ to add more than two Args. - ValueArg<string> fileArg("f","file","File name to read",true,"homer", - "filename"); - ValueArg<string> urlArg("u","url","URL to load",true, - "http://example.com", "URL"); + ValueArg<string> fileArg("f","file","File name to read",true,"/dev/null", "filename"); + ValueArg<string> urlArg("u","url","URL to load",true, "http://example.com", "URL"); cmd.xorAdd( fileArg, urlArg ); cmd.parse(argc, argv); @@ -662,16 +660,16 @@ requires additional information. - SwitchArg sss("s", "stdin", "read from STDIN", false); - ValueArg<string> fff("f", "file", "read from file", false, "/dev/null", "string"); - ValueArg<string> uuu("u", "url", "read from URL", false, "http://example.com", "string"); + SwitchArg stdinArg("s", "stdin", "Read from STDIN", false); + ValueArg<string> fileArg("f","file","File name to read",true,"/dev/null", "filename"); + ValueArg<string> urlArg("u","url","URL to load",true, "http://example.com", "URL"); - vector<Arg*> xorlist; - xorlist.push_back(&sss); - xorlist.push_back(&fff); - xorlist.push_back(&uuu); + vector<Arg*> xorlist; + xorlist.push_back(&stdinArg); + xorlist.push_back(&fileArg); + xorlist.push_back(&urlArg); - cmd.xorAdd( xorlist ); + cmd.xorAdd( xorlist );