57 "usage: rangetest [-v] [-step s] [-list l]" "\n" 58 " or: rangetest --help|-h" "\n" 85 cerr << usage_text << endl;
93 if (cmdline.optset(0))
95 cerr << usage_text << endl;
96 cerr << help_text << endl;
100 int step=cmdline.int_arg(2);
101 std::string list=cmdline.string_arg(3);
105 CODE(
while (RS.more()) { cout << ++RS <<
", "; });
112 CODE( RL.append(R1) );
113 CODE( RL.append(R2) );
114 CODE( RL.append(R3) );
116 CODE(
while (RLS.valid()) { cout << RLS <<
", "; ++RLS; });
119 CODE( cout << step << endl );
120 CODE( cout << list << endl );
123 CODE(
while (RLSs.valid()) { cout << RLSs <<
", "; ++RLSs; });
option requires an argument
#define RANGETEST_VERSION
A class to deal with numerical ranges.
Namespace containing all components of module commandline. ,.
Evaluates commandline by calling long_getopt. ,You may instantiate a Commandline object by passing th...
#define CODE(line)
Show code along with output of executed code.
tfxx::Range< int > Tirange
struct to define options ,This struct is used to define a list of options. An example is: ...