diff options
-rwxr-xr-x | todoist | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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) |