aboutsummaryrefslogtreecommitdiffstats
path: root/todoist
diff options
context:
space:
mode:
Diffstat (limited to 'todoist')
-rwxr-xr-xtodoist7
1 files changed, 7 insertions, 0 deletions
diff --git a/todoist b/todoist
index 8a45c90..d1ef7c7 100755
--- a/todoist
+++ b/todoist
@@ -61,6 +61,9 @@ def arg_parser():
parser.add_argument("-n", "--no-due-date",
help="Add task with no due date",
action="store_true")
+ parser.add_argument("-i", "--indent",
+ help="Set indentation of task (default is 1)",
+ type=int)
parser.add_argument("msg",
metavar="MSG",
nargs='*',
@@ -162,6 +165,10 @@ def main():
if args.severity:
kwargs["priority"] = args.severity
+ ## Set indentation
+ if args.indent:
+ kwargs["indent"] = args.indent
+
## Assign to person
if args.assign:
aid, err = find_candidate(args.assign.lower(), collaborators)