diff options
author | Robin Obůrka <r.oburka@gmail.com> | 2016-02-28 22:10:18 +0100 |
---|---|---|
committer | Robin Obůrka <r.oburka@gmail.com> | 2016-02-28 22:10:18 +0100 |
commit | c65f35fe82cf755dc59ec288a5148f90407e1d88 (patch) | |
tree | fc9fd11aac2a1018a02f214cf094d3881f822fde /todoist | |
parent | Change behavior projects: Approximative definition is possible now (diff) | |
download | todoist-c65f35fe82cf755dc59ec288a5148f90407e1d88.tar.xz |
Add --indent parameter
Diffstat (limited to 'todoist')
-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) |