Ignore:
Timestamp:
Jan 11, 2010, 12:15:47 AM (11 years ago)
Author:
Peter Johansson
Message:

added new cmd option 'anchor-format'. refs #279

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/Parameter.cc

    r1017 r1023  
    5151    : cmd_( std::string("Mandatory arguments to long options ") +
    5252            std::string("are mandatory for short options too.")),
     53      anchor_format_(cmd_,"anchor-format",
     54                     "override anchor image format defined in config file"),
    5355      config_file_(cmd_, "config-file",
    5456                   "configuration file [<ROOT>/.svndigest/config]"),
     
    99101  Parameter::~Parameter(void)
    100102  {
     103  }
     104
     105
     106  const yat::utility::OptionArg<std::string>&
     107  Parameter::anchor_format(void) const
     108  {
     109    return anchor_format_;
    101110  }
    102111
     
    231240    // don't use argv[0] because user may rename the binary
    232241    cmd_.program_name() = PACKAGE_NAME;
     242    anchor_format_.print_arg("=FMT");
    233243    config_file_.print_arg("=FILE");
    234244    format_.print_arg("=FMT");
Note: See TracChangeset for help on using the changeset viewer.