Best approach for git-like interface
问题 I'm writing a little command line todo app that has a general git-like interface. It has several tasks it can perform: add , list , complete , ... all of these should be accessible via the todo <task> interface. Eg todo list . Like with git, some of these task take variables or options, and the todo app can also take options (which are applicable to any type of task, e.g. the location of the config file). Eventually one should be able to write something like: todo -c ~/.config/todorc add -