Commit 88c3b49a697042190d5b8e97cfbb0786f1371ea0

Fix options parsing.
  
6767 opts.description( "test suite for 'sockios' framework" );
6868 opts.usage( "[options]" );
6969
70 opts << option<bool>( "print this help message", 'h', "help" )
71 << option<bool>( "list all test cases", 'l', "list" )
70 opts << option<void>( "print this help message", 'h', "help" )
71 << option<void>( "list all test cases", 'l', "list" )
7272 << option<std::string>( "run tests by number", 'r', "run" )["0"]
73 << option<bool>( "print status of tests within test suite", 'v', "verbose" )
74 << option<bool>( "trace checks", 't', "trace" );
73 << option<void>( "print status of tests within test suite", 'v', "verbose" )
74 << option<void>( "trace checks", 't', "trace" );
7575
7676 try {
7777 opts.parse( argc, argv );
812812 if ( opts.is_set( 'r' ) ) {
813813 std::stringstream ss( opts.get<std::string>( 'r' ) );
814814 int n;
815 int res = 0;
815816 while ( ss >> n ) {
816 t.single( n );
817 res |= t.single( n );
817818 }
818819
819 return 0;
820 return res;
820821 }
821822
822823 return t.girdle();