aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2016-02-26 23:20:17 +0100
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2016-02-26 23:20:17 +0100
commit6f47eb2c7a881d7a95efdebf97521a528d5d349c (patch)
tree7063148f1de62652ab7e2ee3eb17ba81e85082c1
parentProvide some basic installation guide in README file (diff)
downloadtodoist-6f47eb2c7a881d7a95efdebf97521a528d5d349c.tar.xz
Add argument --no-due-date
-rwxr-xr-xtodoist7
1 files changed, 6 insertions, 1 deletions
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: