Mercurial > python-cmd2
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 | 1 This is cut-and-pasted from an interactive example.py session. |
2 Calling `example.py -t` runs it as a series of unit tests, | |
3 verifying that the same output is still returned. | |
4 | |
106 | 5 (Cmd) say goodnight, Gracie |
6 goodnight, Gracie | |
7 (Cmd) say -p goodnight, Gracie | |
8 oodnight, Graciegay | |
9 (Cmd) say -h | |
10 Usage: speak [options] arg | |
11 | |
12 Options: | |
13 -h, --help show this help message and exit | |
14 -p, --piglatin atinLay | |
15 -s, --shout N00B EMULATION MODE | |
16 -r REPEAT, --repeat=REPEAT | |
17 output [n] times | |
18 (Cmd) say --shout goodnight, Gracie | |
19 GOODNIGHT, GRACIE | |
20 (Cmd) set prompt 'example >>> ' | |
107
3e2651cbe376
vigorous whitespace stripping from test results
catherine@dellzilla
parents:
106
diff
changeset
|
21 prompt - was: (Cmd) |
106 | 22 now: example >>> |
23 example >>> say --repeat 5 spam | |
24 spam | |
25 spam | |
26 spam | |
27 example >>> set | |
28 prompt: example >>> | |
29 editor: gedit | |
30 echo: False | |
31 maxrepeats: 3 | |
32 example >>> set maxrepeats 10 | |
33 maxrepeats - was: 3 | |
34 now: 10 | |
35 example >>> say --repeat 5 spam | |
36 spam | |
37 spam | |
38 spam | |
39 spam | |
107
3e2651cbe376
vigorous whitespace stripping from test results
catherine@dellzilla
parents:
106
diff
changeset
|
40 spam |
108 | 41 example >>> |