summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-09-08 02:00:20 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-09-08 02:00:20 -0400
commit612e94ceaa1f063250b706530b9515ce77b32c59 (patch)
tree212db5725bcf17b80f92b23d54ce11a978b3e143 /main.py
parent6cfdd704a919753e2e697935e27b80bbe53ae894 (diff)
downloadfork-ledger-612e94ceaa1f063250b706530b9515ce77b32c59.tar.gz
fork-ledger-612e94ceaa1f063250b706530b9515ce77b32c59.tar.bz2
fork-ledger-612e94ceaa1f063250b706530b9515ce77b32c59.zip
setup_ledger.py needs to link against libgmp
Diffstat (limited to 'main.py')
-rw-r--r--main.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/main.py b/main.py
index 52852476..4fc59c91 100644
--- a/main.py
+++ b/main.py
@@ -10,15 +10,13 @@ def bar (str):
register_option ("hello", "h:", foo)
register_option ("goodbye", "g:", bar)
-print process_arguments (sys.argv[1:])
+args = process_arguments (sys.argv[1:])
process_environment (os.environ, "TEST_")
-sys.exit(0)
-
parser = TextualParser ()
register_parser (parser)
journal = Journal ()
-parse_journal_file (sys.argv[1], journal)
+parse_journal_file (args[0], journal)
print journal[-1].payee