Ignore:
Timestamp:
Oct 22, 2007, 2:55:19 AM (14 years ago)
Author:
Peter
Message:

adding possibility to make option required

File:
1 edited

Legend:

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

    r975 r980  
    3636
    3737  Option::Option(CommandLine& cmd, std::string flag, std::string desc)
    38     : description_(desc), present_(false)
     38    : cmd_(cmd), description_(desc), present_(false)
    3939  {
    4040    if (flag.empty())
     
    5858  Option::~Option(void)
    5959  {
     60  }
     61
     62
     63  const CommandLine& Option::cmd(void) const
     64  {
     65    return cmd_;
    6066  }
    6167
Note: See TracChangeset for help on using the changeset viewer.