diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-06 23:38:12 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-06 23:38:12 -0400 |
commit | c1bf4bdf69d2a0c2795cb5d44f13bc0bd3b16d8e (patch) | |
tree | ef59e8b46802ecbedcbd5b415643cf017e49ad5d | |
parent | aea84dd9c5b7c28610e67d8f29554ce109f63dad (diff) | |
download | fork-ledger-c1bf4bdf69d2a0c2795cb5d44f13bc0bd3b16d8e.tar.gz fork-ledger-c1bf4bdf69d2a0c2795cb5d44f13bc0bd3b16d8e.tar.bz2 fork-ledger-c1bf4bdf69d2a0c2795cb5d44f13bc0bd3b16d8e.zip |
Moved the --abbrev-len option to report_t.
-rw-r--r-- | src/report.cc | 1 | ||||
-rw-r--r-- | src/report.h | 1 | ||||
-rw-r--r-- | src/session.cc | 3 | ||||
-rw-r--r-- | src/session.h | 1 |
4 files changed, 3 insertions, 3 deletions
diff --git a/src/report.cc b/src/report.cc index 5222829c..6d8a0b88 100644 --- a/src/report.cc +++ b/src/report.cc @@ -326,6 +326,7 @@ expr_t::ptr_op_t report_t::lookup(const string& name) OPT(amount_); else OPT(anon); else OPT(account_); + else OPT(abbrev_len_); break; case 'b': diff --git a/src/report.h b/src/report.h index edc3a838..5ab6c47c 100644 --- a/src/report.h +++ b/src/report.h @@ -152,6 +152,7 @@ public: * Option handlers */ + OPTION(report_t, abbrev_len_); OPTION(report_t, account_); OPTION(report_t, actual); // -L OPTION(report_t, add_budget); diff --git a/src/session.cc b/src/session.cc index ed24fc23..4afe2e51 100644 --- a/src/session.cc +++ b/src/session.cc @@ -263,8 +263,7 @@ expr_t::ptr_op_t session_t::lookup(const string& name) if (WANT_OPT()) { p += OPT_PREFIX_LEN; switch (*p) { case 'a': - OPT(abbrev_len_); - else OPT_(account_); // -a + OPT_(account_); // -a break; case 'd': OPT(download); // -Q diff --git a/src/session.h b/src/session.h index ae0d213c..0b36b1c6 100644 --- a/src/session.h +++ b/src/session.h @@ -114,7 +114,6 @@ public: * Option handlers */ - OPTION(session_t, abbrev_len_); OPTION(session_t, account_); // -a OPTION(session_t, download); // -Q |