summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/option.h2
-rw-r--r--src/pyinterp.h1
-rw-r--r--src/report.cc1
-rw-r--r--src/report.h5
4 files changed, 7 insertions, 2 deletions
diff --git a/src/option.h b/src/option.h
index 538de60a..01c821d9 100644
--- a/src/option.h
+++ b/src/option.h
@@ -46,7 +46,7 @@
#ifndef _OPTION_H
#define _OPTION_H
-#include "scope.h"
+#include "interactive.h"
namespace ledger {
diff --git a/src/pyinterp.h b/src/pyinterp.h
index 1b0f4059..a550e5ba 100644
--- a/src/pyinterp.h
+++ b/src/pyinterp.h
@@ -32,7 +32,6 @@
#ifndef _PYINTERP_H
#define _PYINTERP_H
-#include "interactive.h"
#include "session.h"
#if defined(HAVE_BOOST_PYTHON)
diff --git a/src/report.cc b/src/report.cc
index 90a8399d..af4bff67 100644
--- a/src/report.cc
+++ b/src/report.cc
@@ -434,6 +434,7 @@ option_t<report_t> * report_t::lookup_option(const char * p)
case 'd':
OPT(daily);
else OPT(date_format_);
+ else OPT(depth_);
else OPT(deviation);
else OPT_(display_);
else OPT(display_amount_);
diff --git a/src/report.h b/src/report.h
index a98286a9..5ab29736 100644
--- a/src/report.h
+++ b/src/report.h
@@ -313,6 +313,11 @@ public:
on("%y-%b-%d");
});
+ OPTION_(report_t, depth_, DO_(scope) {
+ interactive_t args(scope, "l");
+ parent->HANDLER(limit_).on(string("depth<=") + args.get<string>(0));
+ });
+
OPTION_(report_t, deviation, DO() { // -D
parent->HANDLER(display_total_).set_expr("amount_expr-total_expr/count");
});