Ignore:
Timestamp:
Nov 27, 2010, 1:09:14 AM (11 years ago)
Author:
Peter
Message:

fixes #645. error message is now: invalid argument --bar'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/OptionArg.h

    r2210 r2352  
    147147      catch (runtime_error& e) {
    148148        std::stringstream sstr(rhs);
    149         sstr << ": invalid argument";
     149        sstr << "invalid argument";
     150        sstr << "`" << rhs << "' for `";
     151        if (!long_name().empty())
     152          sstr << "--" << long_name();
     153        else
     154          sstr << "-" << short_name();
     155        sstr << "'";
    150156        throw cmd_error(sstr.str());
    151157      }
Note: See TracChangeset for help on using the changeset viewer.