diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-02 03:44:32 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-02 03:44:32 -0500 |
commit | 1d1b9465e40cf122ad30e7aac21ebdba8513f5d9 (patch) | |
tree | 1a23a6e02eb54a73fe6a8a942a00b8f059b279e9 /src/session.h | |
parent | a8db7bd303b6ecab8de975511e1ea9ccc27a2c81 (diff) | |
download | fork-ledger-1d1b9465e40cf122ad30e7aac21ebdba8513f5d9.tar.gz fork-ledger-1d1b9465e40cf122ad30e7aac21ebdba8513f5d9.tar.bz2 fork-ledger-1d1b9465e40cf122ad30e7aac21ebdba8513f5d9.zip |
Wire up the --european option
Diffstat (limited to 'src/session.h')
-rw-r--r-- | src/session.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/session.h b/src/session.h index 4b8d2380..d8bfa05f 100644 --- a/src/session.h +++ b/src/session.h @@ -50,6 +50,7 @@ #include "account.h" #include "journal.h" #include "option.h" +#include "commodity.h" namespace ledger { @@ -124,7 +125,10 @@ public: OPTION(session_t, account_); // -a OPTION(session_t, cache_); OPTION(session_t, download); // -Q - OPTION(session_t, european); + + OPTION_(session_t, european, DO() { + commodity_t::base_t::european_by_default = true; + }); OPTION__ (session_t, price_exp_, // -Z |