Changed the order in which options are processed, to provide for the correct
overrides. 1. Global defaults 2. Environment variable settings 3. Initialization file 4. Command-line arguments Whatever is later in the list overrides what is earlier.
This commit is contained in:
parent
ebae0257fb
commit
a5e2fa42bb
5 changed files with 165 additions and 146 deletions
17
TODO
17
TODO
|
|
@ -7,6 +7,22 @@ LEDGER -*- mode: org; fill-column: 78 -*-
|
||||||
#+CATEGORY: Ledger
|
#+CATEGORY: Ledger
|
||||||
|
|
||||||
* 2.6.2
|
* 2.6.2
|
||||||
|
** DONE [#A] Command-line options don't always override init-file options
|
||||||
|
- State "DONE" [2009-01-21 Wed 18:53] \\
|
||||||
|
Fixed by changing the order in which options are read:
|
||||||
|
|
||||||
|
1. Global defaults
|
||||||
|
2. Environment variable settings
|
||||||
|
3. Initialization file
|
||||||
|
4. Command-line arguments
|
||||||
|
|
||||||
|
Whatever is later in the list overrides what is earlier.
|
||||||
|
:PROPERTIES:
|
||||||
|
:Submitter: Daniel Neilson <daniel.neilson@gmail.com>
|
||||||
|
:Version: 2.6.1
|
||||||
|
:ID: E8E19E21-608E-4B91-A85E-B0EE3E500557
|
||||||
|
:END:
|
||||||
|
[2009-01-21 Wed 18:36]
|
||||||
** DONE [#A] Reading Ledger data from stdin does not work at all
|
** DONE [#A] Reading Ledger data from stdin does not work at all
|
||||||
- State "DONE" [2009-01-21 Wed 18:26] \\
|
- State "DONE" [2009-01-21 Wed 18:26] \\
|
||||||
Fixed by buffering stdin data into memory before parsing it.
|
Fixed by buffering stdin data into memory before parsing it.
|
||||||
|
|
@ -15,6 +31,7 @@ LEDGER -*- mode: org; fill-column: 78 -*-
|
||||||
:Ticket: 210
|
:Ticket: 210
|
||||||
:ID: B6A502D1-D8A8-4986-9D96-301C2E13E020
|
:ID: B6A502D1-D8A8-4986-9D96-301C2E13E020
|
||||||
:END:
|
:END:
|
||||||
|
[2009-01-21 Wed 18:35]
|
||||||
** DONE [#B] %2.2X format string doesn't work
|
** DONE [#B] %2.2X format string doesn't work
|
||||||
- State "DONE" [2009-01-20 Tue 21:02] \\
|
- State "DONE" [2009-01-20 Tue 21:02] \\
|
||||||
Fixed in 2.6.2.
|
Fixed in 2.6.2.
|
||||||
|
|
|
||||||
61
main.cc
61
main.cc
|
|
@ -29,22 +29,16 @@ int parse_and_report(config_t& config, std::auto_ptr<journal_t>& journal,
|
||||||
|
|
||||||
ledger::terminus = datetime_t::now;
|
ledger::terminus = datetime_t::now;
|
||||||
|
|
||||||
// Parse command-line arguments, and those set in the environment
|
// Setup some global defaults
|
||||||
|
|
||||||
std::list<std::string> args;
|
const char * p = std::getenv("HOME");
|
||||||
process_arguments(ledger::config_options, argc - 1, argv + 1, false, args);
|
std::string home = p ? p : "";
|
||||||
|
|
||||||
if (args.empty()) {
|
config.init_file = home + "/.ledgerrc";
|
||||||
option_help(std::cerr);
|
config.price_db = home + "/.pricedb";
|
||||||
return 1;
|
config.cache_file = home + "/.ledger-cache";
|
||||||
}
|
|
||||||
strings_list::iterator arg = args.begin();
|
|
||||||
|
|
||||||
if (config.cache_file == "<none>")
|
// Process environment settings
|
||||||
config.use_cache = false;
|
|
||||||
else
|
|
||||||
config.use_cache = config.data_file.empty() && config.price_db.empty();
|
|
||||||
DEBUG_PRINT("ledger.config.cache", "1. use_cache = " << config.use_cache);
|
|
||||||
|
|
||||||
TRACE(main, "Processing options and environment variables");
|
TRACE(main, "Processing options and environment variables");
|
||||||
|
|
||||||
|
|
@ -64,16 +58,39 @@ int parse_and_report(config_t& config, std::auto_ptr<journal_t>& journal,
|
||||||
process_option(ledger::config_options, "price-exp", p);
|
process_option(ledger::config_options, "price-exp", p);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const char * p = std::getenv("HOME");
|
// Process init-file settings
|
||||||
std::string home = p ? p : "";
|
|
||||||
|
|
||||||
if (config.init_file.empty())
|
journal.reset(new journal_t);
|
||||||
config.init_file = home + "/.ledgerrc";
|
|
||||||
if (config.price_db.empty())
|
|
||||||
config.price_db = home + "/.pricedb";
|
|
||||||
|
|
||||||
if (config.cache_file.empty())
|
if (! config.init_file.empty() &&
|
||||||
config.cache_file = home + "/.ledger-cache";
|
access(config.init_file.c_str(), R_OK) != -1) {
|
||||||
|
if (parse_journal_file(config.init_file, config, journal.get()) ||
|
||||||
|
journal->auto_entries.size() > 0 ||
|
||||||
|
journal->period_entries.size() > 0)
|
||||||
|
throw new error(std::string("Entries found in initialization file '") +
|
||||||
|
config.init_file + "'");
|
||||||
|
|
||||||
|
journal->sources.pop_front(); // remove init file
|
||||||
|
}
|
||||||
|
|
||||||
|
// Process command-line arguments
|
||||||
|
|
||||||
|
std::list<std::string> args;
|
||||||
|
process_arguments(ledger::config_options, argc - 1, argv + 1, false, args);
|
||||||
|
|
||||||
|
if (args.empty()) {
|
||||||
|
option_help(std::cerr);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
strings_list::iterator arg = args.begin();
|
||||||
|
|
||||||
|
if (config.cache_file == "<none>")
|
||||||
|
config.use_cache = false;
|
||||||
|
else
|
||||||
|
config.use_cache = config.data_file.empty() && config.price_db.empty();
|
||||||
|
DEBUG_PRINT("ledger.config.cache", "1. use_cache = " << config.use_cache);
|
||||||
|
|
||||||
|
// Identify which files will be used
|
||||||
|
|
||||||
if (config.data_file == config.cache_file)
|
if (config.data_file == config.cache_file)
|
||||||
config.use_cache = false;
|
config.use_cache = false;
|
||||||
|
|
@ -144,8 +161,6 @@ int parse_and_report(config_t& config, std::auto_ptr<journal_t>& journal,
|
||||||
|
|
||||||
// Parse initialization files, ledger data, price database, etc.
|
// Parse initialization files, ledger data, price database, etc.
|
||||||
|
|
||||||
journal.reset(new journal_t);
|
|
||||||
|
|
||||||
{ TRACE_PUSH(parser, "Parsing journal file");
|
{ TRACE_PUSH(parser, "Parsing journal file");
|
||||||
|
|
||||||
if (parse_ledger_data(config, journal.get()) == 0)
|
if (parse_ledger_data(config, journal.get()) == 0)
|
||||||
|
|
|
||||||
221
option.cc
221
option.cc
|
|
@ -13,19 +13,16 @@
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
inline void process_option(option_t * opt, const char * arg = NULL) {
|
inline void process_option(option_t * opt, const char * arg = NULL) {
|
||||||
if (! opt->handled) {
|
try {
|
||||||
try {
|
opt->handler(arg);
|
||||||
opt->handler(arg);
|
}
|
||||||
}
|
catch (error * err) {
|
||||||
catch (error * err) {
|
err->context.push_back
|
||||||
err->context.push_back
|
(new error_context
|
||||||
(new error_context
|
(std::string("While parsing option '--") + opt->long_opt +
|
||||||
(std::string("While parsing option '--") + opt->long_opt +
|
"'" + (opt->short_opt != '\0' ?
|
||||||
"'" + (opt->short_opt != '\0' ?
|
(std::string(" (-") + opt->short_opt + "):") : ":")));
|
||||||
(std::string(" (-") + opt->short_opt + "):") : ":")));
|
throw err;
|
||||||
throw err;
|
|
||||||
}
|
|
||||||
opt->handled = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -869,23 +866,25 @@ OPT_BEGIN(download, "Q") {
|
||||||
} OPT_END(download);
|
} OPT_END(download);
|
||||||
|
|
||||||
OPT_BEGIN(quantity, "O") {
|
OPT_BEGIN(quantity, "O") {
|
||||||
|
report->show_revalued = false;
|
||||||
ledger::amount_expr = "@a";
|
ledger::amount_expr = "@a";
|
||||||
ledger::total_expr = "@O";
|
ledger::total_expr = "@O";
|
||||||
} OPT_END(quantity);
|
} OPT_END(quantity);
|
||||||
|
|
||||||
OPT_BEGIN(basis, "B") {
|
OPT_BEGIN(basis, "B") {
|
||||||
|
report->show_revalued = false;
|
||||||
ledger::amount_expr = "@b";
|
ledger::amount_expr = "@b";
|
||||||
ledger::total_expr = "@B";
|
ledger::total_expr = "@B";
|
||||||
} OPT_END(basis);
|
} OPT_END(basis);
|
||||||
|
|
||||||
OPT_BEGIN(price, "I") {
|
OPT_BEGIN(price, "I") {
|
||||||
|
report->show_revalued = false;
|
||||||
ledger::amount_expr = "@i";
|
ledger::amount_expr = "@i";
|
||||||
ledger::total_expr = "@I";
|
ledger::total_expr = "@I";
|
||||||
} OPT_END(price);
|
} OPT_END(price);
|
||||||
|
|
||||||
OPT_BEGIN(market, "V") {
|
OPT_BEGIN(market, "V") {
|
||||||
report->show_revalued = true;
|
report->show_revalued = true;
|
||||||
|
|
||||||
ledger::amount_expr = "@v";
|
ledger::amount_expr = "@v";
|
||||||
ledger::total_expr = "@V";
|
ledger::total_expr = "@V";
|
||||||
} OPT_END(market);
|
} OPT_END(market);
|
||||||
|
|
@ -963,103 +962,103 @@ OPT_BEGIN(percentage, "%") {
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
option_t config_options[CONFIG_OPTIONS_SIZE] = {
|
option_t config_options[CONFIG_OPTIONS_SIZE] = {
|
||||||
{ "abbrev-len", '\0', true, opt_abbrev_len, false },
|
{ "abbrev-len", '\0', true, opt_abbrev_len },
|
||||||
{ "account", 'a', true, opt_account, false },
|
{ "account", 'a', true, opt_account },
|
||||||
{ "actual", 'L', false, opt_actual, false },
|
{ "actual", 'L', false, opt_actual },
|
||||||
{ "add-budget", '\0', false, opt_add_budget, false },
|
{ "add-budget", '\0', false, opt_add_budget },
|
||||||
{ "amount", 't', true, opt_amount, false },
|
{ "amount", 't', true, opt_amount },
|
||||||
{ "amount-data", 'j', false, opt_amount_data, false },
|
{ "amount-data", 'j', false, opt_amount_data },
|
||||||
{ "ansi", '\0', false, opt_ansi, false },
|
{ "ansi", '\0', false, opt_ansi },
|
||||||
{ "ansi-invert", '\0', false, opt_ansi_invert, false },
|
{ "ansi-invert", '\0', false, opt_ansi_invert },
|
||||||
{ "average", 'A', false, opt_average, false },
|
{ "average", 'A', false, opt_average },
|
||||||
{ "balance-format", '\0', true, opt_balance_format, false },
|
{ "balance-format", '\0', true, opt_balance_format },
|
||||||
{ "base", '\0', false, opt_base, false },
|
{ "base", '\0', false, opt_base },
|
||||||
{ "basis", 'B', false, opt_basis, false },
|
{ "basis", 'B', false, opt_basis },
|
||||||
{ "begin", 'b', true, opt_begin, false },
|
{ "begin", 'b', true, opt_begin },
|
||||||
{ "budget", '\0', false, opt_budget, false },
|
{ "budget", '\0', false, opt_budget },
|
||||||
{ "by-payee", 'P', false, opt_by_payee, false },
|
{ "by-payee", 'P', false, opt_by_payee },
|
||||||
{ "cache", '\0', true, opt_cache, false },
|
{ "cache", '\0', true, opt_cache },
|
||||||
{ "cleared", 'C', false, opt_cleared, false },
|
{ "cleared", 'C', false, opt_cleared },
|
||||||
{ "code-as-payee", '\0', false, opt_code_as_payee, false },
|
{ "code-as-payee", '\0', false, opt_code_as_payee },
|
||||||
{ "collapse", 'n', false, opt_collapse, false },
|
{ "collapse", 'n', false, opt_collapse },
|
||||||
{ "comm-as-payee", 'x', false, opt_comm_as_payee, false },
|
{ "comm-as-payee", 'x', false, opt_comm_as_payee },
|
||||||
{ "cost", '\0', false, opt_basis, false },
|
{ "cost", '\0', false, opt_basis },
|
||||||
{ "current", 'c', false, opt_current, false },
|
{ "current", 'c', false, opt_current },
|
||||||
{ "daily", '\0', false, opt_daily, false },
|
{ "daily", '\0', false, opt_daily },
|
||||||
{ "date-format", 'y', true, opt_date_format, false },
|
{ "date-format", 'y', true, opt_date_format },
|
||||||
{ "debug", '\0', true, opt_debug, false },
|
{ "debug", '\0', true, opt_debug },
|
||||||
{ "descend", '\0', true, opt_descend, false },
|
{ "descend", '\0', true, opt_descend },
|
||||||
{ "descend-if", '\0', true, opt_descend_if, false },
|
{ "descend-if", '\0', true, opt_descend_if },
|
||||||
{ "deviation", 'D', false, opt_deviation, false },
|
{ "deviation", 'D', false, opt_deviation },
|
||||||
{ "display", 'd', true, opt_display, false },
|
{ "display", 'd', true, opt_display },
|
||||||
{ "dow", '\0', false, opt_dow, false },
|
{ "dow", '\0', false, opt_dow },
|
||||||
{ "download", 'Q', false, opt_download, false },
|
{ "download", 'Q', false, opt_download },
|
||||||
{ "effective", '\0', false, opt_effective, false },
|
{ "effective", '\0', false, opt_effective },
|
||||||
{ "empty", 'E', false, opt_empty, false },
|
{ "empty", 'E', false, opt_empty },
|
||||||
{ "end", 'e', true, opt_end, false },
|
{ "end", 'e', true, opt_end },
|
||||||
{ "equity-format", '\0', true, opt_equity_format, false },
|
{ "equity-format", '\0', true, opt_equity_format },
|
||||||
{ "file", 'f', true, opt_file, false },
|
{ "file", 'f', true, opt_file },
|
||||||
{ "forecast", '\0', true, opt_forecast, false },
|
{ "forecast", '\0', true, opt_forecast },
|
||||||
{ "format", 'F', true, opt_format, false },
|
{ "format", 'F', true, opt_format },
|
||||||
{ "full-help", 'H', false, opt_full_help, false },
|
{ "full-help", 'H', false, opt_full_help },
|
||||||
{ "gain", 'G', false, opt_gain, false },
|
{ "gain", 'G', false, opt_gain },
|
||||||
{ "head", '\0', true, opt_head, false },
|
{ "head", '\0', true, opt_head },
|
||||||
{ "help", 'h', false, opt_help, false },
|
{ "help", 'h', false, opt_help },
|
||||||
{ "help-calc", '\0', false, opt_help_calc, false },
|
{ "help-calc", '\0', false, opt_help_calc },
|
||||||
{ "help-comm", '\0', false, opt_help_comm, false },
|
{ "help-comm", '\0', false, opt_help_comm },
|
||||||
{ "help-disp", '\0', false, opt_help_disp, false },
|
{ "help-disp", '\0', false, opt_help_disp },
|
||||||
{ "init-file", 'i', true, opt_init_file, false },
|
{ "init-file", 'i', true, opt_init_file },
|
||||||
{ "input-date-format", '\0', true, opt_input_date_format, false },
|
{ "input-date-format", '\0', true, opt_input_date_format },
|
||||||
{ "limit", 'l', true, opt_limit, false },
|
{ "limit", 'l', true, opt_limit },
|
||||||
{ "lot-dates", '\0', false, opt_lot_dates, false },
|
{ "lot-dates", '\0', false, opt_lot_dates },
|
||||||
{ "lot-prices", '\0', false, opt_lot_prices, false },
|
{ "lot-prices", '\0', false, opt_lot_prices },
|
||||||
{ "lot-tags", '\0', false, opt_lot_tags, false },
|
{ "lot-tags", '\0', false, opt_lot_tags },
|
||||||
{ "lots", '\0', false, opt_lots, false },
|
{ "lots", '\0', false, opt_lots },
|
||||||
{ "market", 'V', false, opt_market, false },
|
{ "market", 'V', false, opt_market },
|
||||||
{ "monthly", 'M', false, opt_monthly, false },
|
{ "monthly", 'M', false, opt_monthly },
|
||||||
{ "no-cache", '\0', false, opt_no_cache, false },
|
{ "no-cache", '\0', false, opt_no_cache },
|
||||||
{ "only", '\0', true, opt_only, false },
|
{ "only", '\0', true, opt_only },
|
||||||
{ "output", 'o', true, opt_output, false },
|
{ "output", 'o', true, opt_output },
|
||||||
{ "pager", '\0', true, opt_pager, false },
|
{ "pager", '\0', true, opt_pager },
|
||||||
{ "percentage", '%', false, opt_percentage, false },
|
{ "percentage", '%', false, opt_percentage },
|
||||||
{ "performance", 'g', false, opt_performance, false },
|
{ "performance", 'g', false, opt_performance },
|
||||||
{ "period", 'p', true, opt_period, false },
|
{ "period", 'p', true, opt_period },
|
||||||
{ "period-sort", '\0', true, opt_period_sort, false },
|
{ "period-sort", '\0', true, opt_period_sort },
|
||||||
{ "plot-amount-format", '\0', true, opt_plot_amount_format, false },
|
{ "plot-amount-format", '\0', true, opt_plot_amount_format },
|
||||||
{ "plot-total-format", '\0', true, opt_plot_total_format, false },
|
{ "plot-total-format", '\0', true, opt_plot_total_format },
|
||||||
{ "price", 'I', false, opt_price, false },
|
{ "price", 'I', false, opt_price },
|
||||||
{ "price-db", '\0', true, opt_price_db, false },
|
{ "price-db", '\0', true, opt_price_db },
|
||||||
{ "price-exp", 'Z', true, opt_price_exp, false },
|
{ "price-exp", 'Z', true, opt_price_exp },
|
||||||
{ "prices-format", '\0', true, opt_prices_format, false },
|
{ "prices-format", '\0', true, opt_prices_format },
|
||||||
{ "print-format", '\0', true, opt_print_format, false },
|
{ "print-format", '\0', true, opt_print_format },
|
||||||
{ "quantity", 'O', false, opt_quantity, false },
|
{ "quantity", 'O', false, opt_quantity },
|
||||||
{ "quarterly", '\0', false, opt_quarterly, false },
|
{ "quarterly", '\0', false, opt_quarterly },
|
||||||
{ "real", 'R', false, opt_real, false },
|
{ "real", 'R', false, opt_real },
|
||||||
{ "reconcile", '\0', true, opt_reconcile, false },
|
{ "reconcile", '\0', true, opt_reconcile },
|
||||||
{ "reconcile-date", '\0', true, opt_reconcile_date, false },
|
{ "reconcile-date", '\0', true, opt_reconcile_date },
|
||||||
{ "register-format", '\0', true, opt_register_format, false },
|
{ "register-format", '\0', true, opt_register_format },
|
||||||
{ "related", 'r', false, opt_related, false },
|
{ "related", 'r', false, opt_related },
|
||||||
{ "set-price", '\0', true, opt_set_price, false },
|
{ "set-price", '\0', true, opt_set_price },
|
||||||
{ "sort", 'S', true, opt_sort, false },
|
{ "sort", 'S', true, opt_sort },
|
||||||
{ "sort-all", '\0', true, opt_sort_all, false },
|
{ "sort-all", '\0', true, opt_sort_all },
|
||||||
{ "sort-entries", '\0', true, opt_sort_entries, false },
|
{ "sort-entries", '\0', true, opt_sort_entries },
|
||||||
{ "subtotal", 's', false, opt_subtotal, false },
|
{ "subtotal", 's', false, opt_subtotal },
|
||||||
{ "tail", '\0', true, opt_tail, false },
|
{ "tail", '\0', true, opt_tail },
|
||||||
{ "total", 'T', true, opt_total, false },
|
{ "total", 'T', true, opt_total },
|
||||||
{ "total-data", 'J', false, opt_total_data, false },
|
{ "total-data", 'J', false, opt_total_data },
|
||||||
{ "totals", '\0', false, opt_totals, false },
|
{ "totals", '\0', false, opt_totals },
|
||||||
{ "trace", '\0', false, opt_trace, false },
|
{ "trace", '\0', false, opt_trace },
|
||||||
{ "truncate", '\0', true, opt_truncate, false },
|
{ "truncate", '\0', true, opt_truncate },
|
||||||
{ "unbudgeted", '\0', false, opt_unbudgeted, false },
|
{ "unbudgeted", '\0', false, opt_unbudgeted },
|
||||||
{ "uncleared", 'U', false, opt_uncleared, false },
|
{ "uncleared", 'U', false, opt_uncleared },
|
||||||
{ "verbose", '\0', false, opt_verbose, false },
|
{ "verbose", '\0', false, opt_verbose },
|
||||||
{ "version", 'v', false, opt_version, false },
|
{ "version", 'v', false, opt_version },
|
||||||
{ "weekly", 'W', false, opt_weekly, false },
|
{ "weekly", 'W', false, opt_weekly },
|
||||||
{ "wide", 'w', false, opt_wide, false },
|
{ "wide", 'w', false, opt_wide },
|
||||||
{ "wide-register-format", '\0', true, opt_wide_register_format, false },
|
{ "wide-register-format", '\0', true, opt_wide_register_format },
|
||||||
{ "write-hdr-format", '\0', true, opt_write_hdr_format, false },
|
{ "write-hdr-format", '\0', true, opt_write_hdr_format },
|
||||||
{ "write-xact-format", '\0', true, opt_write_xact_format, false },
|
{ "write-xact-format", '\0', true, opt_write_xact_format },
|
||||||
{ "yearly", 'Y', false, opt_yearly, false },
|
{ "yearly", 'Y', false, opt_yearly },
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace ledger
|
} // namespace ledger
|
||||||
|
|
|
||||||
1
option.h
1
option.h
|
|
@ -14,7 +14,6 @@ struct option_t {
|
||||||
char short_opt;
|
char short_opt;
|
||||||
bool wants_arg;
|
bool wants_arg;
|
||||||
handler_t handler;
|
handler_t handler;
|
||||||
bool handled;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class option_error : public error {
|
class option_error : public error {
|
||||||
|
|
|
||||||
11
parser.cc
11
parser.cc
|
|
@ -114,17 +114,6 @@ unsigned int parse_ledger_data(config_t& config,
|
||||||
DEBUG_PRINT("ledger.config.cache",
|
DEBUG_PRINT("ledger.config.cache",
|
||||||
"3. use_cache = " << config.use_cache);
|
"3. use_cache = " << config.use_cache);
|
||||||
|
|
||||||
if (! config.init_file.empty() &&
|
|
||||||
access(config.init_file.c_str(), R_OK) != -1) {
|
|
||||||
if (parse_journal_file(config.init_file, config, journal) ||
|
|
||||||
journal->auto_entries.size() > 0 ||
|
|
||||||
journal->period_entries.size() > 0)
|
|
||||||
throw new error(std::string("Entries found in initialization file '") +
|
|
||||||
config.init_file + "'");
|
|
||||||
|
|
||||||
journal->sources.pop_front(); // remove init file
|
|
||||||
}
|
|
||||||
|
|
||||||
if (config.use_cache && ! config.cache_file.empty() &&
|
if (config.use_cache && ! config.cache_file.empty() &&
|
||||||
config.cache_file != "<none>" && ! config.data_file.empty()) {
|
config.cache_file != "<none>" && ! config.data_file.empty()) {
|
||||||
DEBUG_PRINT("ledger.config.cache",
|
DEBUG_PRINT("ledger.config.cache",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue