Changeset 724 for trunk/lib/OptionVersion.cc
- Timestamp:
- Dec 9, 2008, 2:34:16 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/OptionVersion.cc
r705 r724 35 35 36 36 OptionVersion::OptionVersion(CommandLine& cmd, std::string flag, 37 std::string desc )38 : OptionSwitch(cmd, flag, desc, false) 37 std::string desc, OptionSwitch* const verbose) 38 : OptionSwitch(cmd, flag, desc, false), verbose_(verbose) 39 39 { 40 40 } … … 46 46 ColumnStream cs(std::cout, 1); 47 47 cs.width(0)=79; 48 cs << PACKAGE_NAME << " " << PACKAGE_VERSION << version_string() << "\n"; 49 cs << "\nCopyright (C) " << svn_year() 48 cs << PACKAGE_NAME << " " << PACKAGE_VERSION; 49 bool no_verbose = verbose_ && verbose_->present() && !verbose_->value(); 50 if (!no_verbose) { 51 cs << " ("; 52 if (DEV_BUILD) 53 cs << "r" << svn_revision() << " "; 54 cs << "compiled " << compilation_time() << ", " << compilation_date() 55 << ")"; 56 } 57 cs << "\n\nCopyright (C) " << svn_year() 50 58 << " Jari H\u00E4kkinen and Peter Johansson.\n" 51 59 << "This is free software. You may redistribute copies of it under "
Note: See TracChangeset
for help on using the changeset viewer.