annotate example/exampleSession.txt @ 113:7d215852f9a6

still unpackaging
author catherine@Elli.myhome.westell.com
date Sat, 25 Oct 2008 19:34:16 -0400
parents cmd2/example/exampleSession.txt@c1e5df33721f
children 0820c42ea23e
rev   line source
109
78c4db4c2045 all done but the proper packaging
catherine@dellzilla
parents: 108
diff changeset
1 This is cut-and-pasted from an interactive example.py session.
78c4db4c2045 all done but the proper packaging
catherine@dellzilla
parents: 108
diff changeset
2 Calling `example.py -t` runs it as a series of unit tests,
78c4db4c2045 all done but the proper packaging
catherine@dellzilla
parents: 108
diff changeset
3 verifying that the same output is still returned.
78c4db4c2045 all done but the proper packaging
catherine@dellzilla
parents: 108
diff changeset
4
106
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
5 (Cmd) say goodnight, Gracie
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
6 goodnight, Gracie
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
7 (Cmd) say -p goodnight, Gracie
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
8 oodnight, Graciegay
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
9 (Cmd) say -h
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
10 Usage: speak [options] arg
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
11
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
12 Options:
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
13 -h, --help show this help message and exit
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
14 -p, --piglatin atinLay
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
15 -s, --shout N00B EMULATION MODE
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
16 -r REPEAT, --repeat=REPEAT
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
17 output [n] times
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
18 (Cmd) say --shout goodnight, Gracie
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
19 GOODNIGHT, GRACIE
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
20 (Cmd) set prompt 'example >>> '
107
3e2651cbe376 vigorous whitespace stripping from test results
catherine@dellzilla
parents: 106
diff changeset
21 prompt - was: (Cmd)
106
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
22 now: example >>>
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
23 example >>> say --repeat 5 spam
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
24 spam
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
25 spam
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
26 spam
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
27 example >>> set
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
28 prompt: example >>>
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
29 editor: gedit
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
30 echo: False
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
31 maxrepeats: 3
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
32 example >>> set maxrepeats 10
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
33 maxrepeats - was: 3
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
34 now: 10
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
35 example >>> say --repeat 5 spam
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
36 spam
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
37 spam
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
38 spam
2d3232693807 prompt-setting quirks
catherine@dellzilla
parents:
diff changeset
39 spam
107
3e2651cbe376 vigorous whitespace stripping from test results
catherine@dellzilla
parents: 106
diff changeset
40 spam
108
f7b0152c57f9 cmd2 test working
catherine@dellzilla
parents: 107
diff changeset
41 example >>>