diff options
author | John Wiegley <johnw@newartisans.com> | 2008-07-21 19:03:26 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-07-21 19:03:26 -0400 |
commit | 8601a2a8bfd63b54a8c65d34ad021cbe2270d201 (patch) | |
tree | 05323e9e1c67ee53deaa409a6f0ee29ecb08e4a6 /session.h | |
parent | ac5cc7796ff61eb116b815b13e4fda3d74bb6020 (diff) | |
download | ledger-8601a2a8bfd63b54a8c65d34ad021cbe2270d201.tar.gz ledger-8601a2a8bfd63b54a8c65d34ad021cbe2270d201.tar.bz2 ledger-8601a2a8bfd63b54a8c65d34ad021cbe2270d201.zip |
Added back the --version option, and changed acprep so that it hacks on the
generated Makefile to greatly reduce unneeded verbosity.
Diffstat (limited to 'session.h')
-rw-r--r-- | session.h | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -137,6 +137,26 @@ class session_t : public expr::symbol_scope_t virtual expr::ptr_op_t lookup(const string& name); // + // Help options + // + + value_t option_version(expr::scope_t&) { + std::cout << "Ledger " << ledger::version << ", the command-line accounting tool"; + std::cout << "\n\nCopyright (c) 2003-2008, John Wiegley. All rights reserved.\n\n\ +This program is made available under the terms of the BSD Public License.\n\ +See LICENSE file included with the distribution for details and disclaimer.\n"; + std::cout << "\n(modules: gmp, pcre"; +#if defined(HAVE_EXPAT) || defined(HAVE_XMLPARSE) + std::cout << ", xml"; +#endif +#ifdef HAVE_LIBOFX + std::cout << ", ofx"; +#endif + std::cout << ")\n"; + return NULL_VALUE; + } + + // // Debug options // |