summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/main.py b/main.py
index d1e6cb10..52852476 100644
--- a/main.py
+++ b/main.py
@@ -1,7 +1,20 @@
import sys
+import os
from ledger import *
+def foo (str):
+ print "Hello:", str
+def bar (str):
+ print "Goodbye:", str
+
+register_option ("hello", "h:", foo)
+register_option ("goodbye", "g:", bar)
+print process_arguments (sys.argv[1:])
+process_environment (os.environ, "TEST_")
+
+sys.exit(0)
+
parser = TextualParser ()
register_parser (parser)