*** empty log message ***
This commit is contained in:
parent
7ce12f8cfe
commit
36bf26188a
1 changed files with 30 additions and 16 deletions
22
main.cc
22
main.cc
|
|
@ -31,9 +31,11 @@ static void show_help(std::ostream& out)
|
||||||
<< std::endl
|
<< std::endl
|
||||||
<< "ledger options:" << std::endl
|
<< "ledger options:" << std::endl
|
||||||
<< " -C also show cleared transactions" << std::endl
|
<< " -C also show cleared transactions" << std::endl
|
||||||
|
<< " -d DATE specify an implicit date range (e.g., -d april)"
|
||||||
|
<< std::endl
|
||||||
<< " -b DATE specify a beginning date" << std::endl
|
<< " -b DATE specify a beginning date" << std::endl
|
||||||
<< " -c do not show future entries (same as -e TODAY)" << std::endl
|
|
||||||
<< " -e DATE specify an ending date" << std::endl
|
<< " -e DATE specify an ending date" << std::endl
|
||||||
|
<< " -c do not show future entries (same as -e TODAY)" << std::endl
|
||||||
<< " -f FILE specify pathname of ledger data file" << std::endl
|
<< " -f FILE specify pathname of ledger data file" << std::endl
|
||||||
<< " -h display this help text" << std::endl
|
<< " -h display this help text" << std::endl
|
||||||
#ifdef HUQUQULLAH
|
#ifdef HUQUQULLAH
|
||||||
|
|
@ -42,8 +44,9 @@ static void show_help(std::ostream& out)
|
||||||
<< " -i FILE read the list of inclusion regexps from FILE" << std::endl
|
<< " -i FILE read the list of inclusion regexps from FILE" << std::endl
|
||||||
<< " -p FILE read the list of prices from FILE" << std::endl
|
<< " -p FILE read the list of prices from FILE" << std::endl
|
||||||
<< " -P download price quotes from the Internet" << std::endl
|
<< " -P download price quotes from the Internet" << std::endl
|
||||||
<< " (this works by running the command \"getquote SYMBOL\")"
|
<< " (works by running the command \"getquote SYMBOL\")"
|
||||||
<< std::endl
|
<< std::endl
|
||||||
|
<< " -v display version information" << std::endl
|
||||||
<< " -w print out warnings where applicable" << std::endl
|
<< " -w print out warnings where applicable" << std::endl
|
||||||
<< std::endl
|
<< std::endl
|
||||||
<< "commands:" << std::endl
|
<< "commands:" << std::endl
|
||||||
|
|
@ -124,7 +127,7 @@ int main(int argc, char *argv[])
|
||||||
show_cleared = false;
|
show_cleared = false;
|
||||||
|
|
||||||
int c;
|
int c;
|
||||||
while (-1 != (c = getopt(argc, argv, "+b:e:d:D:cChHwf:i:p:P"))) {
|
while (-1 != (c = getopt(argc, argv, "+b:e:d:D:cChHwf:i:p:Pv"))) {
|
||||||
switch (char(c)) {
|
switch (char(c)) {
|
||||||
case 'b':
|
case 'b':
|
||||||
case 'e': {
|
case 'e': {
|
||||||
|
|
@ -198,7 +201,6 @@ int main(int argc, char *argv[])
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'C': show_cleared = true; break;
|
case 'C': show_cleared = true; break;
|
||||||
|
|
||||||
case 'h': show_help(std::cout); break;
|
case 'h': show_help(std::cout); break;
|
||||||
#ifdef HUQUQULLAH
|
#ifdef HUQUQULLAH
|
||||||
case 'H': compute_huquq = false; break;
|
case 'H': compute_huquq = false; break;
|
||||||
|
|
@ -231,6 +233,18 @@ int main(int argc, char *argv[])
|
||||||
case 'P':
|
case 'P':
|
||||||
get_quotes = true;
|
get_quotes = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'v':
|
||||||
|
std::cout
|
||||||
|
<< "Ledger Accouting Tool 1.0" << std::endl
|
||||||
|
<< " Copyright (c) 2003 John Wiegley <johnw@newartisans.com>"
|
||||||
|
<< std::endl << std::endl
|
||||||
|
<< "This program is made available under the terms of the BSD"
|
||||||
|
<< std::endl
|
||||||
|
<< "Public License. See the LICENSE file included with the"
|
||||||
|
<< std::endl
|
||||||
|
<< "distribution for details and disclaimer." << std::endl;
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue