Moved the --abbrev-len option to report_t.
This commit is contained in:
parent
aea84dd9c5
commit
c1bf4bdf69
4 changed files with 3 additions and 3 deletions
|
|
@ -326,6 +326,7 @@ expr_t::ptr_op_t report_t::lookup(const string& name)
|
||||||
OPT(amount_);
|
OPT(amount_);
|
||||||
else OPT(anon);
|
else OPT(anon);
|
||||||
else OPT(account_);
|
else OPT(account_);
|
||||||
|
else OPT(abbrev_len_);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'b':
|
case 'b':
|
||||||
|
|
|
||||||
|
|
@ -152,6 +152,7 @@ public:
|
||||||
* Option handlers
|
* Option handlers
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
OPTION(report_t, abbrev_len_);
|
||||||
OPTION(report_t, account_);
|
OPTION(report_t, account_);
|
||||||
OPTION(report_t, actual); // -L
|
OPTION(report_t, actual); // -L
|
||||||
OPTION(report_t, add_budget);
|
OPTION(report_t, add_budget);
|
||||||
|
|
|
||||||
|
|
@ -263,8 +263,7 @@ expr_t::ptr_op_t session_t::lookup(const string& name)
|
||||||
if (WANT_OPT()) { p += OPT_PREFIX_LEN;
|
if (WANT_OPT()) { p += OPT_PREFIX_LEN;
|
||||||
switch (*p) {
|
switch (*p) {
|
||||||
case 'a':
|
case 'a':
|
||||||
OPT(abbrev_len_);
|
OPT_(account_); // -a
|
||||||
else OPT_(account_); // -a
|
|
||||||
break;
|
break;
|
||||||
case 'd':
|
case 'd':
|
||||||
OPT(download); // -Q
|
OPT(download); // -Q
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,6 @@ public:
|
||||||
* Option handlers
|
* Option handlers
|
||||||
*/
|
*/
|
||||||
|
|
||||||
OPTION(session_t, abbrev_len_);
|
|
||||||
OPTION(session_t, account_); // -a
|
OPTION(session_t, account_); // -a
|
||||||
OPTION(session_t, download); // -Q
|
OPTION(session_t, download); // -Q
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue