A very simple todo app, the extra thing I added is to allow sorting by any of the fields in the data structure.
Actually my first python app that accepts arguments. Idk why I didn't use/need any before..
main.py [-h] [-l] [-c COMPLETE] [-d DELETE] [-s {id,task,done}] [task]
positional arguments:
task Task to add
options:
-h, --help show this help message and exit
-l, --list List all tasks
-c, --complete COMPLETE
Mark a task complete by ID
-d, --delete DELETE Delete a task by ID
-s, --sort {id,task,done}
Choose a property to sort by; must be used together with --list
with --list