summaryrefslogtreecommitdiff
path: root/example/exampleSession.txt
diff options
context:
space:
mode:
authorcatherine <catherine@Elli.myhome.westell.com>2008-10-25 19:34:16 -0400
committercatherine <catherine@Elli.myhome.westell.com>2008-10-25 19:34:16 -0400
commit62709017bd95503bbab5f9d8b35564eaccd1e8a9 (patch)
treefda334255e119692589cddba10d2e991746ef1b8 /example/exampleSession.txt
parent1a635f9f753e3515df84a07e2bc7979d7ae138bc (diff)
downloadcmd2-hg-62709017bd95503bbab5f9d8b35564eaccd1e8a9.tar.gz
still unpackaging
Diffstat (limited to 'example/exampleSession.txt')
-rw-r--r--example/exampleSession.txt41
1 files changed, 41 insertions, 0 deletions
diff --git a/example/exampleSession.txt b/example/exampleSession.txt
new file mode 100644
index 0000000..958cd5c
--- /dev/null
+++ b/example/exampleSession.txt
@@ -0,0 +1,41 @@
+This is cut-and-pasted from an interactive example.py session.
+Calling `example.py -t` runs it as a series of unit tests,
+verifying that the same output is still returned.
+
+(Cmd) say goodnight, Gracie
+goodnight, Gracie
+(Cmd) say -p goodnight, Gracie
+oodnight, Graciegay
+(Cmd) say -h
+Usage: speak [options] arg
+
+Options:
+ -h, --help show this help message and exit
+ -p, --piglatin atinLay
+ -s, --shout N00B EMULATION MODE
+ -r REPEAT, --repeat=REPEAT
+ output [n] times
+(Cmd) say --shout goodnight, Gracie
+GOODNIGHT, GRACIE
+(Cmd) set prompt 'example >>> '
+prompt - was: (Cmd)
+now: example >>>
+example >>> say --repeat 5 spam
+spam
+spam
+spam
+example >>> set
+prompt: example >>>
+editor: gedit
+echo: False
+maxrepeats: 3
+example >>> set maxrepeats 10
+maxrepeats - was: 3
+now: 10
+example >>> say --repeat 5 spam
+spam
+spam
+spam
+spam
+spam
+example >>> \ No newline at end of file