Commit graph

65 commits

Author SHA1 Message Date
John Wiegley
e00c568add When --input-date-format is seen, don't wipe out the rest of the date
formats, simply replace the first one.  Then, when --period is seen,
use the first date format as the template for what to pass to the
begin/end options.
2008-04-13 02:41:14 -04:00
John Wiegley
29eeae9b1c (process_options): Corrected a long-standing error with using "--" to
separate payee regexps from account regexps.
2008-04-13 02:41:14 -04:00
John Wiegley
6d7827af5a Added --input-date-format, which affects how dates in textual and QIF
files are parsed -- but not the dates inside a price database, whose
format is fixed.
2008-04-13 02:41:10 -04:00
John Wiegley
577767ea58 Use std::localtime instead of std::gmtime. 2008-04-13 02:41:09 -04:00
John Wiegley
a4d4c1af8b (process_options): Show all register entries, even those with null
value, if -E is used.
2008-04-13 02:41:08 -04:00
John Wiegley
35bfc958f2 (config_t): Corrected a value in the register format. 2008-04-13 02:41:08 -04:00
John Wiegley
d790a3ad60 (show_version): In the version page output all of the modules which
support has been compiled in for.  This will make tracking down
certain problems much quicker.
2008-04-13 02:41:07 -04:00
John Wiegley
8187bd159d doc updates 2008-04-13 02:41:06 -04:00
John Wiegley
ba8981a3f6 Removed the --reconcilable option, since the pending flag is now being
used.
2008-04-13 02:41:05 -04:00
John Wiegley
48cb87b8bd formatting changes 2008-04-13 02:41:04 -04:00
John Wiegley
9bdd1ea9f6 (export_config): Added export entries for the reconcile_balance and
reconcile_date options.
2008-04-13 02:41:02 -04:00
John Wiegley
1c0a061675 (export_config): Added missing config members for Python. 2008-04-13 02:41:01 -04:00
John Wiegley
8fd5f4ee57 Added support for "--pager PROGRAM". A likely way to define it in
your login file would be: "export LEDGER_PAGER=$PAGER".
2008-04-13 02:41:00 -04:00
John Wiegley
65b2181860 Added new --head and --tail options, which control how many *entries*
are displayed in a register report or print report.  The UNIX commands
"head" and "tail" can be used to control how many transactions are
displayed.
2008-04-13 02:40:59 -04:00
John Wiegley
983618d266 Added new options --reconcile, --reconcilable and --reconcile-date. 2008-04-13 02:40:56 -04:00
John Wiegley
4ca26fbd73 *** empty log message *** 2008-04-13 02:40:56 -04:00
John Wiegley
f3c736006c *** empty log message *** 2008-04-13 02:40:55 -04:00
John Wiegley
64461f0d95 Added write_hdr_format and write_xact_format, which are used by the
"output" command.
2008-04-13 02:40:54 -04:00
John Wiegley
37a67d89b0 (parse_ledger_data): Don't auto-create equivalencies for bytes,
kilobytes, etc., since people may want to use "b" for something else.
2008-04-13 02:40:53 -04:00
John Wiegley
d6475fc4a2 (parse_ledger_data): Set journal->price_db if a price database is
successfully read in.
2008-04-13 02:40:52 -04:00
John Wiegley
79f9a1efb5 Set cache_file to "<none>" if --no-cache is used. 2008-04-13 02:40:50 -04:00
John Wiegley
ea283a27ce (option_full_help): Added docs for --no-cache. (option_help): Added
docs for --no-cache.  Added --no-cache option.
2008-04-13 02:40:50 -04:00
John Wiegley
1db60b12e2 updated to 2.02 2008-04-13 02:40:48 -04:00
John Wiegley
c9fb11bd60 updated to version 2.0 2008-04-13 02:40:47 -04:00
John Wiegley
a32173ace6 changes 2008-04-13 02:40:47 -04:00
John Wiegley
cc98b59d1e corrected semantics of -j and -J 2004-09-27 19:13:08 -04:00
John Wiegley
26de701a4e corrected the deviation report (-D) when -V is also being used 2004-09-25 17:59:14 -04:00
John Wiegley
555c2d855f a couple of fixes to collapsed and subtotal reports 2004-09-25 05:39:33 -04:00
John Wiegley
66bc51db6d added pysample.dat, which provides a more realistic example of using Python 2004-09-25 03:30:23 -04:00
John Wiegley
fbd8fd2caf fixed printing of amounts that have a null commodity (was always precision 0) 2004-09-24 23:22:48 -04:00
John Wiegley
eda733a56e improved error checking in parser, in case parts of an amount are missing 2004-09-24 23:11:50 -04:00
John Wiegley
be18ab2f1a more error checking and robustness mods 2004-09-23 07:05:03 -04:00
John Wiegley
c57a2e74b8 shored up error checking of value expressions 2004-09-23 06:34:27 -04:00
John Wiegley
4e6157b74a added some error checking 2004-09-23 02:37:42 -04:00
John Wiegley
a7ea33a8ec passing --enable-python to configure is now required for python support 2004-09-20 04:07:02 -04:00
John Wiegley
18879bbe85 some changes in the way formatting strings are handled; for simplicity 2004-09-18 02:33:51 -04:00
John Wiegley
79b664f6f0 changed the management of "xdata" in walk.h 2004-09-17 04:38:24 -04:00
John Wiegley
5d99b1e241 using main.py is now only 50% slower than using main.cc 2004-09-14 19:15:08 -04:00
John Wiegley
23799b5f4e main.py does everything except balance reports now 2004-09-14 18:48:26 -04:00
John Wiegley
0c890de44b main.py now implements nearly all the functionality of main.cc 2004-09-14 17:34:48 -04:00
John Wiegley
061e19e302 make config_t visible to Python; almost possible to implement main.cc in main.py 2004-09-14 06:25:29 -04:00
John Wiegley
a013b520ba python integrated both ways (see sample.dat), and initialized on-demand 2004-09-14 04:47:41 -04:00
John Wiegley
e1d6c4bff2 interval_t objects now play nicely with python. see the bottom of main.py 2004-09-10 18:38:52 -04:00
John Wiegley
842359474e optimize python iterations of entries, transactions; use exceptions more 2004-09-08 03:33:56 -04:00
John Wiegley
fcaaa37201 switch from using deque back to list; affects speed by up to 30%! 2004-09-06 05:38:32 -04:00
John Wiegley
032afa5657 a bit of a reorg; still much more to go 2004-08-29 03:23:55 -04:00
John Wiegley
b4304515ff ledger.so (the python module) now builds based on autoconf discovery 2004-08-28 04:26:48 -04:00
John Wiegley
5186be2881 updated help screen 2004-08-24 05:05:08 -04:00
John Wiegley
1fd37a432d cleanup; fully switched to autoconf -- use scripts/acprep 2004-08-24 02:11:32 -04:00
John Wiegley
73e2abd1b2 a little cleanup; reversed the meaning of -z and -p (to be more mnemonic) 2004-08-23 18:23:31 -04:00