63 "usage: tooltest [-clip string] [-map string]" "\n" 64 " or: tooltest --help|-h" "\n" 74 using namespace tfxx::cmdline;
75 static Declare options[]=
91 cerr << usage_text << endl;
96 Commandline cmdline(iargc, argv, options);
99 if (cmdline.optset(0))
101 cerr << usage_text << endl;
102 cerr << help_text << endl;
116 cout <<
"part of command line which was not parsed:" << endl;
118 while (cmdline.extra()) { cout << cmdline.next() << endl; }
127 cout <<
"Test stfinv::tools::clipstring with default delimiter" 131 cout <<
"remainder is: " << s << endl;
135 cout <<
"remainder is: " << s << endl;
137 std::string delim=
"++";
141 cout <<
"Test stfinv::tools::clipstring with delimiter " 145 cout <<
"remainder is: " << s << endl;
149 cout <<
"remainder is: " << s << endl;
160 cout <<
"Test stfinv::tools::makeparamap with default delimiter" 165 std::string liststring=paramap[
"list"];
166 std::replace(liststring.begin(), liststring.end(),
',',
' ');
167 cout << liststring << endl;