Changeset 1082 for trunk


Ignore:
Timestamp:
Jun 8, 2010, 6:15:53 AM (11 years ago)
Author:
Peter Johansson
Message:

remove force option in svncopyright

Location:
trunk/bin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/Parameter.cc

    r1066 r1082  
    5353      config_file_(cmd_, "config-file",
    5454                   "configuration file [<ROOT>/.svndigest/config]"),
    55       force_(cmd_, "f,force",
    56              std::string("if sub-directory named <ROOT> exists in target dire")+
    57              std::string("ctory, remove sub-directory before writing results")),
    5855      generate_config_(cmd_, "g,generate-config",
    5956                       "write configuration to standard output"),
     
    162159
    163160
    164   bool Parameter::force(void) const
    165   {
    166     return force_.present();
    167   }
    168 
    169 
    170161  bool Parameter::generate_config(void) const
    171162  {
  • trunk/bin/Parameter.h

    r1060 r1082  
    5353    std::string config_file(void) const;
    5454   
    55     bool force(void) const;
    5655    bool generate_config(void) const ;
    5756    bool ignore_cache(void) const;
     
    8180
    8281    yat::utility::OptionArg<std::string> config_file_;
    83     yat::utility::OptionSwitch force_;
    8482    yat::utility::OptionSwitch generate_config_;
    8583    yat::utility::OptionSwitch ignore_cache_;
  • trunk/bin/svndigestParameter.cc

    r1061 r1082  
    5757                     "override anchor image format defined in config file"),
    5858      copyright_(cmd_, "copyright", "update copyright statement"),
     59      force_(cmd_, "f,force",
     60             std::string("if sub-directory named <ROOT> exists in target dire")+
     61             std::string("ctory, remove sub-directory before writing results")),
    5962      format_(cmd_,"format", "override image format defined in config file"),
    6063      report_(cmd_, "report", "create no HTML report", true),
     
    126129
    127130
     131  bool svndigestParameter::force(void) const
     132  {
     133    return force_.present();
     134  }
     135
     136
    128137  const yat::utility::OptionArg<std::string>&
    129138  svndigestParameter::format(void) const
  • trunk/bin/svndigestParameter.h

    r1060 r1082  
    5252   
    5353    bool copyright(void) const;
     54    bool force(void) const;
    5455    const yat::utility::OptionArg<std::string>& format(void) const;
    5556    bool report(void) const;
     
    6566    yat::utility::OptionArg<std::string> anchor_format_;
    6667    yat::utility::OptionSwitch copyright_;
     68    yat::utility::OptionSwitch force_;
    6769    yat::utility::OptionArg<std::string> format_;
    6870    yat::utility::OptionSwitch report_;
Note: See TracChangeset for help on using the changeset viewer.