Commit 3ba59a872b934d08858db3732c17e2ed208b5b4b
Add preserve option
Charles Lehner committed on 4/13/2016, 6:43:36 PMParent: 9806307fbc3ea20bcc8cc222e8c5317f28d0252e
Files changed
freecheck | changed |
freecheck | ||
---|---|---|
@@ -124,8 +124,9 @@ | ||
124 | 124 … | "showaccounts", # Show available accounts |
125 | 125 … | "showstyles", # Show available check styles |
126 | 126 … | "showblanks", # Show available check blanks |
127 | 127 … | "test", # Don't increment check n, and print VOID |
128 … | + "preserve", # Don't increment check n | |
128 | 129 … | "cgi:s", # Accept big string from CGI script (or similar) |
129 | 130 … | "help") |
130 | 131 … | |
131 | 132 … | or Show_Usage(); |
@@ -602,9 +603,9 @@ | ||
602 | 603 … | print "%%EOF\n"; |
603 | 604 … | |
604 | 605 … | |
605 | 606 … | # Update the config file with the new check number, if it's not just a test |
606 | -if (!$opt_test && !$opt_cgi) { | |
607 … | +if (!$opt_test && !$opt_cgi && !$opt_preserve) { | |
607 | 608 … | $next_check_number = $Definitions{"CheckNumber"} |
608 | 609 … | + ($Definitions{"NumPages"} * $Definitions{"ChecksPerPage"}); |
609 | 610 … | |
610 | 611 … | $config_file = Replace_Val($config_file, "Account", $opt_account, |
@@ -742,8 +743,9 @@ | ||
742 | 743 … | print " --showaccounts show all configured accounts\n"; |
743 | 744 … | print " --showstyles show all configured check styles\n"; |
744 | 745 … | print " --showblanks show all configured check blanks\n"; |
745 | 746 … | print " --help print this message\n"; |
747 … | + print " --preserve print but don't increment check number\n"; | |
746 | 748 … | print " --test print but don't increment check number\n"; |
747 | 749 … | print " and print VOID on the check\n"; |
748 | 750 … | print " --cgi accept string from CGI script (see docs)\n"; |
749 | 751 … | print "\nconfig file \"~/.freecheck.cfg\"\n"; |
Built with git-ssb-web