Command constructor: default_time optional

This commit is contained in:
Josh Holtrop committed 2011-01-01 17:51:04 -05:00
1 parent 67a04df59a
commit 78cb101357
3 files changed
+7 -7

No files matched your search

+1 -4
View File
@@ -3,7 +3,6 @@
import os
import sys
import getopt
from datetime import datetime
from CmdWindow import CmdWindow
from Command import Command
@@ -24,8 +23,6 @@ def main(argv):
usage()
sys.exit(1)
timenow = datetime.now()
for opt, arg in opts:
if opt == "--help":
usage()
@@ -41,7 +38,7 @@ def main(argv):
ds = DataStore(timedbfile)
cmdline = doCmdWindow()
cmd = Command(timenow, cmdline)
cmd = Command(cmdline)
print "Command:", cmd
def doCmdWindow():