summaryrefslogtreecommitdiff
path: root/kronos/cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'kronos/cli.py')
-rw-r--r--kronos/cli.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/kronos/cli.py b/kronos/cli.py
new file mode 100644
index 0000000..bdb5274
--- /dev/null
+++ b/kronos/cli.py
@@ -0,0 +1,29 @@
1# vim: set filencoding=utf8
2"""
3Kronos Command Line UI
4
5@author: Mike Crute (mcrute@ag.com)
6@organization: American Greetings Interactive
7@date: February 05, 2010
8"""
9
10
11import sys
12from optparse import OptionParser
13from kronos.parser import parse_activity
14
15
16class CommandLineUI(object):
17
18 def __init__(self, args):
19 self.args = args
20 self.parse_args()
21
22 def parse_args(self):
23 self.action = self.args[1]
24
25 activity = ' '.join(self.args[2:])
26 self.activity = parse_activity(activity)
27
28 def run(self):
29 pass