summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-06 03:31:41 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-06 03:31:41 -0400
commitcf6babcf9048f7e9205b1bead4794d8e2e9e8d62 (patch)
tree38688d2cd2433517045a67d2ef3f2777ee335050 /src/main.cc
parentecc5a1aab50d57e65b654ea9f8a84f17208ca612 (diff)
downloadfork-ledger-cf6babcf9048f7e9205b1bead4794d8e2e9e8d62.tar.gz
fork-ledger-cf6babcf9048f7e9205b1bead4794d8e2e9e8d62.tar.bz2
fork-ledger-cf6babcf9048f7e9205b1bead4794d8e2e9e8d62.zip
Restored all the option handlers from 2.6.2, but not the options themselves.
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cc b/src/main.cc
index 72d84421..3b985ec6 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -88,7 +88,7 @@ int main(int argc, char * argv[], char * envp[])
// Look for options and a command verb in the command-line arguments
bind_scope_t bound_scope(*global_scope.get(), global_scope->report());
- args = read_command_arguments(bound_scope, args);
+ args = global_scope->read_command_arguments(bound_scope, args);
if (global_scope->HANDLED(script_)) {
// Ledger is being invoked as a script command interpreter
@@ -113,7 +113,7 @@ int main(int argc, char * argv[], char * envp[])
}
else {
// Commence the REPL by displaying the current Ledger version
- global_scope->session().option_version(global_scope->session());
+ global_scope->show_version_info(std::cout);
global_scope->read_journal_files();