# HG changeset patch # User cat@eee # Date 1266008138 18000 # Node ID c69ad8418d398c9433849f6df9ca28392ce23d6b # Parent 7b2bca3951a77b1984e2e97011942960a20de81b free function docs diff -r 7b2bca3951a7 -r c69ad8418d39 cmd2.py --- a/cmd2.py Fri Feb 12 15:35:48 2010 -0500 +++ b/cmd2.py Fri Feb 12 15:55:38 2010 -0500 @@ -1129,9 +1129,11 @@ pyparsing.stringEnd) def do_save(self, arg): """`save [N] [filename.ext]` + Saves command from history to file. - N => Number of command (from history), or `*`; - most recent command if omitted""" + + | N => Number of command (from history), or `*`; + | most recent command if omitted""" try: args = self.saveparser.parseString(arg) diff -r 7b2bca3951a7 -r c69ad8418d39 docs/freefeatures.rst --- a/docs/freefeatures.rst Fri Feb 12 15:35:48 2010 -0500 +++ b/docs/freefeatures.rst Fri Feb 12 15:55:38 2010 -0500 @@ -102,5 +102,16 @@ .. automethod:: cmd2.Cmd.do_history +.. automethod:: cmd2.Cmd.do_list + +.. automethod:: cmd2.Cmd.do_run + +Quitting the application +======================== + +``cmd2`` pre-defines a ``quit`` command for you (with +synonyms ``exit`` and simply ``q``). +It's trivial, but it's one less thing for you to remember. + Transcript-based testing ========================