summaryrefslogtreecommitdiff
path: root/src/session.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-02 03:44:32 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-02 03:44:32 -0500
commit1d1b9465e40cf122ad30e7aac21ebdba8513f5d9 (patch)
tree1a23a6e02eb54a73fe6a8a942a00b8f059b279e9 /src/session.h
parenta8db7bd303b6ecab8de975511e1ea9ccc27a2c81 (diff)
downloadfork-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.h6
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