Added a new --columns= option

This commit is contained in:
John Wiegley 2009-02-19 14:42:18 -04:00
parent 39bdbbe053
commit 5b897a12fc
2 changed files with 3 additions and 0 deletions

View file

@ -339,6 +339,7 @@ option_t<report_t> * report_t::lookup_option(const char * p)
else OPT_ALT(comm_as_account, commodity_as_account);
else OPT(collapse);
else OPT(collapse_if_zero);
else OPT(columns_);
else OPT_(current);
break;
case 'd':

View file

@ -269,6 +269,8 @@ public:
parent->HANDLER(collapse).on_only();
});
OPTION(report_t, columns_);
OPTION__(report_t, csv_format_, CTOR(report_t, csv_format_) {
on(
"%(quoted(date)),"