diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-12 20:20:30 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-12 20:20:30 -0400 |
commit | 71e8d506573fc61271e10fc3d02eea9a5eb8ba01 (patch) | |
tree | 9c0e3c0b27577771067f75ec42815aeef6732bd3 /main.cc | |
parent | 7610aec86df0fd5c49303a8ed984f16a0f0b1e1f (diff) | |
download | fork-ledger-71e8d506573fc61271e10fc3d02eea9a5eb8ba01.tar.gz fork-ledger-71e8d506573fc61271e10fc3d02eea9a5eb8ba01.tar.bz2 fork-ledger-71e8d506573fc61271e10fc3d02eea9a5eb8ba01.zip |
gnuplot is supported again (-j and -J)
Diffstat (limited to 'main.cc')
-rw-r--r-- | main.cc | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -15,6 +15,8 @@ static const std::string bal_fmt = "%20T %2_%-n\n"; static const std::string reg_fmt = "%D %-.20P %-.22N %12.66t %12.80T\n\ %/ %-.22N %12.66t %12.80T\n"; +static const std::string plot_value_fmt = "%D %t\n"; +static const std::string plot_total_fmt = "%D %T\n"; static const std::string print_fmt = "\n%D %X%C%P\n %-34N %12o\n%/ %-34N %12o\n"; static const std::string equity_fmt @@ -219,7 +221,7 @@ int main(int argc, char * argv[]) int c, index; while (-1 != (c = getopt(argc, argv, - "+ABb:Ccd:DEe:F:f:Ghi:L:l:MnOo:P:p:QRrS:sT:t:UVvWXYy:Zz:"))) { + "+ABb:Ccd:DEe:F:f:Ghi:JjL:l:MnOo:P:p:QRrS:sT:t:UVvWXYy:Zz:"))) { switch (char(c)) { // Basic options case 'h': @@ -435,6 +437,16 @@ int main(int argc, char * argv[]) total_expr = "MD(MT/(1+(((t-d)/(30*86400))<0?0:((t-d)/(30*86400)))))"; break; + case 'j': + value_expr = "S" + value_expr; + format_string = plot_value_fmt; + break; + + case 'J': + total_expr = "S" + total_expr; + format_string = plot_total_fmt; + break; + default: assert(0); break; |