Standard Python library framework to facilitate writing command line driven interpreters.
simple.py: a very simmple example that keeps track of a list of friends. A friend is added by sayinghito her, and is removed by sayingbyeto her. You can't sayhito someone who is your friend already, and you can't saybyeto someone who isn't your friend.show_friendslists the current friends.quitexits the application. Note thathelpand tab completion are automatically provided.