From 6f47eb2c7a881d7a95efdebf97521a528d5d349c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Ob=C5=AFrka?= Date: Fri, 26 Feb 2016 23:20:17 +0100 Subject: Add argument --no-due-date --- todoist | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/todoist b/todoist index f40e27a..0be9244 100755 --- a/todoist +++ b/todoist @@ -41,6 +41,9 @@ def arg_parser(): help="Date string", type=str, default="today") + parser.add_argument("-n", "--no-due-date", + help="Add task with no due date", + action="store_true") parser.add_argument("msg", metavar="MSG", nargs='*', @@ -112,7 +115,9 @@ def main(): ## Prepare arguments kwargs = {} - kwargs["date_string"] = args.date + if not args.no_due_date: + kwargs["date_string"] = args.date + if args.project: proj = args.project.lower() if proj in projects: -- cgit v1.2.3