allow you to load old ledger

This commit is contained in:
jed
2012-10-09 03:01:32 -07:00
parent 720178cc0d
commit 573865cb23
10 changed files with 92 additions and 37 deletions

View File

@@ -98,6 +98,8 @@ int main(int argc, char* argv[])
("test,t", "Perform unit tests.")
("parameters", po::value< vector<string> >(), "Specify comma separated parameters.")
("verbose,v", "Increase log level.")
("load","Load the current ledger from the local DB.")
("start","Start from a fresh Ledger.")
;
// Interpret positional arguments as --parameters.
@@ -154,6 +156,9 @@ int main(int argc, char* argv[])
}
}
if(vm.count("start")) theConfig.START_UP=Config::FRESH;
else if(vm.count("load")) theConfig.START_UP=Config::LOAD;
if (iResult)
{
nothing();