From 6042e62e285f57a73d5db42d9c4b2a66a30d265a Mon Sep 17 00:00:00 2001 From: cat Date: Fri, 12 Feb 2010 15:55:38 -0500 Subject: free function docs --- cmd2.py | 6 ++++-- docs/freefeatures.rst | 11 +++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/cmd2.py b/cmd2.py index 27f481c..735f161 100755 --- a/cmd2.py +++ b/cmd2.py @@ -1129,9 +1129,11 @@ class Cmd(cmd.Cmd): 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 --git a/docs/freefeatures.rst b/docs/freefeatures.rst index bac6117..0e633dc 100644 --- a/docs/freefeatures.rst +++ b/docs/freefeatures.rst @@ -102,5 +102,16 @@ also provide `bash-like history list editing`_. .. 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 ======================== -- cgit v1.2.1