aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2016-02-26 23:20:40 +0100
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2016-02-26 23:20:40 +0100
commit4cb1e9d8130874d30bc6081afe5ad80eb728211c (patch)
tree88857022511dd360a93a8fc8751d9e538b8f0b0f
parentAdd argument --no-due-date (diff)
downloadtodoist-4cb1e9d8130874d30bc6081afe5ad80eb728211c.tar.xz
Add some comments for better orientation in code
-rwxr-xr-xtodoist4
1 files changed, 4 insertions, 0 deletions
diff --git a/todoist b/todoist
index 0be9244..26c7d3a 100755
--- a/todoist
+++ b/todoist
@@ -115,9 +115,11 @@ def main():
## Prepare arguments
kwargs = {}
+ ## Set date
if not args.no_due_date:
kwargs["date_string"] = args.date
+ ## Set project
if args.project:
proj = args.project.lower()
if proj in projects:
@@ -125,9 +127,11 @@ def main():
else:
print("WARNING: Unknown project. Task will be stored in Inbox", file=sys.stderr)
+ ## Set priority/severity
if args.severity:
kwargs["priority"] = args.severity
+ ## Assign to person
if args.assign:
name = args.assign.lower()
aid = None