summaryrefslogtreecommitdiff
path: root/config.cc
diff options
context:
space:
mode:
Diffstat (limited to 'config.cc')
-rw-r--r--config.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/config.cc b/config.cc
index ea9c235e..baf244b3 100644
--- a/config.cc
+++ b/config.cc
@@ -46,6 +46,9 @@ config_t::config_t()
#endif
pricesdb_format = "P %[%Y/%m/%d %H:%M:%S] %A %t\n";
+ head_entries = 0;
+ tail_entries = 0;
+
show_collapsed = false;
show_subtotal = false;
show_totals = false;
@@ -714,6 +717,14 @@ OPT_BEGIN(wide, "w") {
config.register_format = config.wide_register_format;
} OPT_END(wide);
+OPT_BEGIN(head, ":") {
+ config.head_entries = std::atoi(optarg);
+} OPT_END(head);
+
+OPT_BEGIN(tail, ":") {
+ config.tail_entries = std::atoi(optarg);
+} OPT_END(tail);
+
OPT_BEGIN(empty, "E") {
config.show_empty = true;
} OPT_END(empty);