summaryrefslogtreecommitdiff
path: root/src/report.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-28 01:17:10 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-28 01:17:10 -0400
commit559566751ddd29caf2cd74c3d44982c907bd1020 (patch)
tree251cfd38ee17dac245256d8a87d45735fca82a77 /src/report.h
parentb7233edd8a7101c16d41837a8ebe2710ede76cc7 (diff)
downloadfork-ledger-559566751ddd29caf2cd74c3d44982c907bd1020.tar.gz
fork-ledger-559566751ddd29caf2cd74c3d44982c907bd1020.tar.bz2
fork-ledger-559566751ddd29caf2cd74c3d44982c907bd1020.zip
Sort by default unless --unsorted is selected
Diffstat (limited to 'src/report.h')
-rw-r--r--src/report.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/report.h b/src/report.h
index 31f65c4f..c44937d4 100644
--- a/src/report.h
+++ b/src/report.h
@@ -290,6 +290,7 @@ public:
HANDLER(unbudgeted).report(out);
HANDLER(uncleared).report(out);
HANDLER(unround).report(out);
+ HANDLER(unsorted).report(out);
HANDLER(weekly).report(out);
HANDLER(wide).report(out);
HANDLER(yearly).report(out);
@@ -821,6 +822,8 @@ public:
.set_expr(string("--unround"), "unrounded(total_expr)");
});
+ OPTION(report_t, unsorted);
+
OPTION_(report_t, weekly, DO() { // -W
parent->HANDLER(period_).on(string("--weekly"), "weekly");
});