blob: bdb527437f5878482ac84cb00a4af238ba1ba76a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# vim: set filencoding=utf8
"""
Kronos Command Line UI
@author: Mike Crute (mcrute@ag.com)
@organization: American Greetings Interactive
@date: February 05, 2010
"""
import sys
from optparse import OptionParser
from kronos.parser import parse_activity
class CommandLineUI(object):
def __init__(self, args):
self.args = args
self.parse_args()
def parse_args(self):
self.action = self.args[1]
activity = ' '.join(self.args[2:])
self.activity = parse_activity(activity)
def run(self):
pass
|