Changeset 989 for trunk/yat


Ignore:
Timestamp:
Nov 14, 2007, 4:35:02 PM (14 years ago)
Author:
Peter
Message:

fixed typo

Location:
trunk/yat/utility
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/CommandLine.cc

    r983 r989  
    113113          if (iter==long_options_.end()) {
    114114            std::stringstream ss;
    115             ss << program_name_ << ": unrecognized option `" << key << "'\n"
     115            ss << ": unrecognized option `" << key << "'\n"
    116116               << try_help();
    117117            throw std::runtime_error(ss.str());
     
    127127            if (iter==short_options_.end()) {
    128128              std::stringstream ss;
    129               ss << program_name_ << ": invalid option -- " << (*arg)[i] << "\n"
     129              ss << ": invalid option -- " << (*arg)[i] << "\n"
    130130                 << try_help() << "\n";
    131131              throw std::runtime_error(ss.str());
  • trunk/yat/utility/OptionArg.h

    r980 r989  
    131131      if (required_ && !present()) {
    132132        std::stringstream ss;
    133         ss << "mandatory opition `";
     133        ss << "mandatory option `";
    134134        if (long_name().size())
    135135          ss << long_name();
Note: See TracChangeset for help on using the changeset viewer.