diff options
-rwxr-xr-x | todoist | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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: |