summaryrefslogtreecommitdiff
path: root/config.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-01-14 23:39:36 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:40:50 -0400
commitea283a27ce4e804cd2f3bd3fb4ed7a58b5e96f6e (patch)
tree6b9da85f40f5b48d9e975365d640f65689d68f46 /config.cc
parent538bce10c0d213fe225f64d38e86bc976755e79e (diff)
downloadfork-ledger-ea283a27ce4e804cd2f3bd3fb4ed7a58b5e96f6e.tar.gz
fork-ledger-ea283a27ce4e804cd2f3bd3fb4ed7a58b5e96f6e.tar.bz2
fork-ledger-ea283a27ce4e804cd2f3bd3fb4ed7a58b5e96f6e.zip
(option_full_help): Added docs for --no-cache. (option_help): Added
docs for --no-cache. Added --no-cache option.
Diffstat (limited to 'config.cc')
-rw-r--r--config.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.cc b/config.cc
index f6ffef0e..d1a5096a 100644
--- a/config.cc
+++ b/config.cc
@@ -357,6 +357,7 @@ Basic options:\n\
-o, --output FILE write output to FILE\n\
-i, --init-file FILE initialize ledger using FILE (default: ~/.ledgerrc)\n\
--cache FILE use FILE as a binary cache when --file is not used\n\
+ --no-cache don't use a cache, even if it would be appropriate\n\
-a, --account NAME use NAME for the default account (useful with QIF)\n\n\
Report filtering:\n\
-c, --current show only current and past entries (not future)\n\
@@ -443,6 +444,7 @@ Use -H to see all the help text on one page, or:\n\
-o, --output FILE write output to FILE\n\
-i, --init-file FILE initialize ledger using FILE (default: ~/.ledgerrc)\n\
--cache FILE use FILE as a binary cache when --file is not used\n\
+ --no-cache don't use a cache, even if it would be appropriate\n\
-a, --account NAME use NAME for the default account (useful with QIF)\n\n\
Commands:\n\
balance [REGEXP]... show balance totals for matching accounts\n\
@@ -583,6 +585,10 @@ OPT_BEGIN(cache, ":") {
config.cache_file = optarg;
} OPT_END(cache);
+OPT_BEGIN(no_cache, "") {
+ config.cache_file = "";
+} OPT_END(no_cache);
+
OPT_BEGIN(output, "o:") {
if (std::string(optarg) != "-")
config.output_file = optarg;