From c65f35fe82cf755dc59ec288a5148f90407e1d88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Ob=C5=AFrka?= Date: Sun, 28 Feb 2016 22:10:18 +0100 Subject: Add --indent parameter --- todoist | 7 +++++++ 1 file changed, 7 insertions(+) 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) -- cgit v1.2.3