Ignore:
Timestamp:
Oct 7, 2010, 4:18:42 PM (12 years ago)
Author:
Peter Johansson
Message:

only output library version number when 'foo --verbose --version'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/OptionVersion.cc

    r1210 r1211  
    5555    cs << prog_name_ << " " << PACKAGE_VERSION;
    5656    bool no_verbose = verbose_ && verbose_->present() && !verbose_->value();
     57    bool verbose = verbose_ && verbose_->present() && verbose_->value();
    5758    if (!no_verbose) {
    5859      cs << " (";
     
    6869       << "This is free software: you are free to change and redistribute it.\n"
    6970       << "There is NO WARRANTY, to the extent permitted by law.\n";
    70     if (!no_verbose) {
     71    if (verbose) {
    7172      cs << "\n"
    7273         << "Compiled with libsvn_subr " << SVN_VER_NUM
Note: See TracChangeset for help on using the changeset viewer.