summaryrefslogtreecommitdiff
path: root/calendar-cli.py
diff options
context:
space:
mode:
authorTobias Brox <tobias@redpill-linpro.com>2017-08-30 00:31:41 +0200
committerTobias Brox <tobias@redpill-linpro.com>2017-08-30 00:35:56 +0200
commit4df23c9f0e4be45a4a053cb290d2533516cb0e85 (patch)
tree94262e800870f5a315d86df407e06b5ef0f08cb7 /calendar-cli.py
parente4b75877bde487d23d4d39de331c099659522453 (diff)
downloadcalendar-cli-4df23c9f0e4be45a4a053cb290d2533516cb0e85.zip
fix proper command name, fix dependency, compatibility fix on version number, modified defaults to fit with my workflow - due dates should expire immediately by default so we can set a proper due date
Diffstat (limited to 'calendar-cli.py')
-rwxr-xr-xcalendar-cli.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/calendar-cli.py b/calendar-cli.py
index cd6a2ec..9398942 100755
--- a/calendar-cli.py
+++ b/calendar-cli.py
@@ -34,7 +34,7 @@ import logging
import sys
import re
-__version__ = "0.11.0-dev"
+__version__ = "0.11.0.dev0"
__author__ = "Tobias Brox"
__author_short__ = "tobixen"
__copyright__ = "Copyright 2013-2016, Tobias Brox"
@@ -761,8 +761,8 @@ def main():
todo_subparsers = todo_parser.add_subparsers(title='tasks subcommand')
todo_add_parser = todo_subparsers.add_parser('add')
todo_add_parser.add_argument('summaryline', nargs='+')
- todo_add_parser.add_argument('--set-due', default=date.today()+timedelta(365))
todo_add_parser.add_argument('--set-dtstart', default=date.today()+timedelta(1))
+ todo_add_parser.add_argument('--set-due', default=date.today()+timedelta(1))
todo_add_parser.add_argument('--is-child', help="the new task is a child-task of the selected task(s)", action='store_true')
for attr in vtodo_txt_one + vtodo_txt_many:
if attr != 'summary':
@@ -775,7 +775,7 @@ def main():
todo_list_parser = todo_subparsers.add_parser('list')
todo_list_parser.add_argument('--todo-template', help="Template for printing out the event", default="{dtstart}{dtstart_passed_mark} {due}{due_passed_mark} {summary}")
- todo_list_parser.add_argument('--default-due', help="Default number of days from a task is submitted until it's considered due", type=int, default=365)
+ todo_list_parser.add_argument('--default-due', help="Default number of days from a task is submitted until it's considered due", type=int, default=14)
todo_list_parser.add_argument('--list-categories', help="Instead of listing the todo-items, list the unique categories used", action='store_true')
todo_list_parser.add_argument('--timestamp-format', help="strftime-style format string for the output timestamps", default="%F (%a)")
todo_list_parser.set_defaults(func=todo_list)