changeset 119:fe47c5b269cc release 0.4, uploaded to PyPI

altering README to match exampleSession.txt
author catherine@dellzilla
date Tue, 28 Oct 2008 14:09:44 -0400
parents db366853074c
children 2f1447f195ae fe432d010ecc
files README.txt cmd2.py
diffstat 2 files changed, 29 insertions(+), 33 deletions(-) [+]
line wrap: on
line diff
--- a/README.txt	Tue Oct 28 14:06:52 2008 -0400
+++ b/README.txt	Tue Oct 28 14:09:44 2008 -0400
@@ -130,7 +130,7 @@
     Documented commands (type help <topic>):
     ========================================
     _load  edit  history  li    load   r    save  set    shortcuts  speak
-    ed     hi    l        list  orate  run  say   shell  show     
+    ed     hi    l        list  orate  run  say   shell  show
     
     Undocumented commands:
     ======================
@@ -149,33 +149,25 @@
     
     (Cmd) say goodnight, Gracie
     goodnight, Gracie
-    (Cmd) say -ps --repeat=5 goodnight, gracie
+    (Cmd) say -ps --repeat=5 goodnight, Gracie
     OODNIGHT, GRACIEGAY
     OODNIGHT, GRACIEGAY
     OODNIGHT, GRACIEGAY
     (Cmd) set
-    prompt: (Cmd) 
+    prompt: (Cmd)
     editor: gedit
     echo: False
     maxrepeats: 3
     (Cmd) set maxrepeats 5
     maxrepeats - was: 3
     now: 5
-    (Cmd) say -ps --repeat=5 goodnight, gracie
+    (Cmd) say -ps --repeat=5 goodnight, Gracie
     OODNIGHT, GRACIEGAY
     OODNIGHT, GRACIEGAY
     OODNIGHT, GRACIEGAY
     OODNIGHT, GRACIEGAY
     OODNIGHT, GRACIEGAY
-    (Cmd) orate these are the
-    > times that
-    > try mens' souls
-    > 
-    > 
-    these are the times that try mens' souls
-    (Cmd) & we made a shortcut!
-    we made a shortcut!
-    (Cmd) history
+    (Cmd) hi
     -------------------------[1]
     help
     -------------------------[2]
@@ -183,30 +175,34 @@
     -------------------------[3]
     say goodnight, Gracie
     -------------------------[4]
-    say -ps --repeat=5 goodnight, gracie
+    say -ps --repeat=5 goodnight, Gracie
     -------------------------[5]
     set
     -------------------------[6]
     set maxrepeats 5
     -------------------------[7]
-    say -ps --repeat=5 goodnight, gracie
-    -------------------------[8]
-    orate these are the
-    times that
-    try mens' souls
-    
-    
-    -------------------------[9]
-    & we made a shortcut!
-    (Cmd) run 3
-    say goodnight, Gracie
-    goodnight, Gracie
-    (Cmd) say put this in a file > text.txt
-    (Cmd) say < text.txt
+    say -ps --repeat=5 goodnight, Gracie
+    (Cmd) run 4
+    say -ps --repeat=5 goodnight, Gracie
+    OODNIGHT, GRACIEGAY
+    OODNIGHT, GRACIEGAY
+    OODNIGHT, GRACIEGAY
+    OODNIGHT, GRACIEGAY
+    OODNIGHT, GRACIEGAY
+    (Cmd) orate Four score and
+    > seven releases ago
+    > our BDFL
+    > blah blah blah
+    >
+    >
+    Four score and seven releases ago our BDFL blah blah blah
+    (Cmd) & look, a shortcut!
+    look, a shortcut!
+    (Cmd) say put this in a file > myfile.txt
+    (Cmd) say < myfile.txt
     put this in a file
     (Cmd) set prompt "---> "
-    prompt - was: (Cmd) 
-    now: ---> 
+    prompt - was: (Cmd)
+    now: --->
     ---> say goodbye
-    goodbye
-    ---> 
+    goodbye
\ No newline at end of file
--- a/cmd2.py	Tue Oct 28 14:06:52 2008 -0400
+++ b/cmd2.py	Tue Oct 28 14:09:44 2008 -0400
@@ -728,7 +728,7 @@
         prompt = pyparsing.Suppress(pyparsing.lineStart + self.cmdapp.prompt)
         continuationPrompt = pyparsing.Suppress(pyparsing.lineStart + self.cmdapp.continuationPrompt)
         self.cmdtxtPattern = (prompt + pyparsing.restOfLine + pyparsing.ZeroOrMore(
-            pyparsing.lineEnd + continuationPrompt + pyparsing.restOfLine))("command")   
+             pyparsing.lineEnd + continuationPrompt + pyparsing.restOfLine))("command")   
     def inputGenerator(self):
         while True:
             self.refreshCommandFinder()