diff options
author | Robin Obůrka <r.oburka@gmail.com> | 2016-02-26 23:20:17 +0100 |
---|---|---|
committer | Robin Obůrka <r.oburka@gmail.com> | 2016-02-26 23:20:17 +0100 |
commit | 6f47eb2c7a881d7a95efdebf97521a528d5d349c (patch) | |
tree | 7063148f1de62652ab7e2ee3eb17ba81e85082c1 | |
parent | Provide some basic installation guide in README file (diff) | |
download | todoist-6f47eb2c7a881d7a95efdebf97521a528d5d349c.tar.xz |
Add argument --no-due-date
-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: |