aboutsummaryrefslogtreecommitdiffstats
path: root/todoist
diff options
context:
space:
mode:
Diffstat (limited to 'todoist')
-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: