aboutsummaryrefslogtreecommitdiffstats
path: root/todoist
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2016-02-28 22:10:18 +0100
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2016-02-28 22:10:18 +0100
commitc65f35fe82cf755dc59ec288a5148f90407e1d88 (patch)
treefc9fd11aac2a1018a02f214cf094d3881f822fde /todoist
parentChange behavior projects: Approximative definition is possible now (diff)
downloadtodoist-c65f35fe82cf755dc59ec288a5148f90407e1d88.tar.xz
Add --indent parameter
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)