Changeset 1420 for trunk


Ignore:
Timestamp:
Nov 2, 2011, 1:24:53 AM (9 years ago)
Author:
Peter Johansson
Message:

fixes #509

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/Makefile.am

    r1419 r1420  
    6060
    6161# tests not yet passing are listed here
    62 XFAIL_TESTS = try_help_test.sh
     62XFAIL_TESTS =
    6363
    6464noinst_HEADERS = Suite.h
  • trunk/test/try_help_test.sh

    r1419 r1420  
    2626SVNDIGEST_run 1 nonsense
    2727tail -n 1 stderr | $GREP svndigest || exit_fail
     28SVNDIGEST_run 1 -nonsense
     29tail -n 1 stderr | $GREP svndigest || exit_fail
     30SVNDIGEST_run 1 --nonsense
     31tail -n 1 stderr | $GREP svndigest || exit_fail
    2832exit_success;
  • trunk/yat/CommandLine.cc

    r1397 r1420  
    1 // $Id: CommandLine.cc 2526 2011-07-25 02:03:35Z peter $
     1// $Id: CommandLine.cc 2609 2011-11-02 00:18:24Z peter $
    22
    33/*
     
    193193        std::stringstream ss2;
    194194        ss2 << ": invalid option -- " << (*arg)[i] << "\n"
    195             << try_help() << "\n";
     195            << try_help();
    196196        throw cmd_error(ss2.str());
    197197      }       
     
    209209      std::stringstream ss2;
    210210      ss2 << ": invalid option -- " << *arg << "\n"
    211           << try_help() << "\n";
     211          << try_help();
    212212      throw cmd_error(ss2.str());
    213213    }
Note: See TracChangeset for help on using the changeset viewer.