Changeset 280


Ignore:
Timestamp:
May 6, 2007, 11:41:30 AM (16 years ago)
Author:
Peter Johansson
Message:

more NEWS and made --version and --help output more standard

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEWS

    r277 r280  
    33======================================================================
    44Copyright (C) 2005, 2006 Jari Häkkinen
     5Copyright (C) 2007  Jari Häkkinen, Peter Johansson
    56
    67This file is part of svndigest, http://lev.thep.lu.se/trac/svndigest
     
    2223======================================================================
    2324
     25version 0.6:
     26  - Removed option flag '-rev'
     27  - More file extensions supported for parsing.
     28 
    2429version 0.5:
    2530  - Added support for svndigest:ignore property.
  • trunk/bin/Parameter.cc

    r269 r280  
    9898      if (!ok)
    9999        throw std::runtime_error("svndigest: invalid option: " + myargv +
    100                                  "\nType 'svndigest --help' for usage.");
     100                                 "\nType `svndigest --help' for usage.");
    101101    }
    102102
     
    168168
    169169    ColumnStream cs(std::cout, 1);
    170     cs.width(0)=68;
    171     cs.margin(0)=2;
     170    cs.width(0)=79;
     171    cs.margin(0)=0;
    172172    ColumnStream cs2(std::cout, 2);
    173173    cs2.width(0)=24;
     
    175175    cs2.margin(0)=2;
    176176
    177     std::cout << "usage: svndigest [options]\n"
     177    std::cout << "Usage: svndigest [OPTION]...\n"
    178178              << "\n";
    179179
    180     cs << "svndigest traverses a directory structure (controlled by "
    181        << "subversion) and calculates developer statistics entries. "
    182        << "The top level directory of the directory structure to "
    183        << "traverse is set with the -r option. The result is written to "
    184        << "the current working directory or a directory set with the "
    185        << "-t option.\n";
    186     std::cout << "\nValid options:\n";
     180    cs << "Generate statistical report for a subversion repository.\n";
     181
     182    cs << "\nMandatory arguments to long options are mandatory for "
     183       << "short options too.\n";
    187184
    188185    cs2  << "    --copyright\tupdate copyright statement\n"
     
    201198         << "-v, --verbose\texplain what is being done\n"
    202199         << "    --version\tprint version information and exit\n";
    203     std::cout << std::endl;
     200
     201    std::cout << "\nReport bugs to <" << PACKAGE_BUGREPORT << ">."
     202              << std::endl;
    204203  }
    205204
     
    207206  void Parameter::version(void) const
    208207  {
    209     using namespace std;
    210     cout << PACKAGE_STRING
    211          << "\nCopyright (C) 2006-2007 Jari Häkkinen and Peter Johansson.\n\n"
    212          << "This is free software; see the source for copying conditions.\n"
    213          << "There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR\n"
    214          << "A PARTICULAR PURPOSE." << endl;
     208    ColumnStream cs(std::cout, 1);
     209    cs.width(0)=79;
     210    cs << PACKAGE_STRING
     211       << "\nCopyright (C) 2007 Jari Häkkinen and Peter Johansson.\n\n"
     212       << "This is free software; see the source for copying conditions."
     213       << "There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR\n"
     214       << "A PARTICULAR PURPOSE.\n";
    215215  }
    216216
Note: See TracChangeset for help on using the changeset viewer.