bugfix --start

This commit is contained in:
iou1name 2020-06-29 15:15:33 -04:00
parent 9af77b99b6
commit 478a826390

View File

@ -48,7 +48,7 @@ def remind_recur(bot, trigger):
parser = tools.FulviaArgparse()
parser.add_argument('period')
parser.add_argument('reminder', nargs='*')
parser.add_argument('-s', '--start')
parser.add_argument('-s', '--start', nargs=2)
parser.add_argument('-l', '--lazy', action='store_true')
parser.add_argument('-r', '--recur', action='store_true')
try:
@ -58,7 +58,7 @@ def remind_recur(bot, trigger):
if args.start:
try:
start = datetime.strptime(args.start, '%Y-%m-%d %H:%M:%S')
start = datetime.strptime(' '.join(args.start),'%Y-%m-%d %H:%M:%S')
except ValueError:
return bot.msg("Datetime improperly formatted.")
else: