Mercurial > python-cmd2
comparison example/exampleSession.txt @ 172:c01f8e612a0a
\n\n finally works
author | catherine@dellzilla |
---|---|
date | Fri, 12 Dec 2008 10:14:01 -0500 |
parents | 429c8e984df4 |
children | 471318e59e51 |
comparison
equal
deleted
inserted
replaced
171:0b93f1a4076c | 172:c01f8e612a0a |
---|---|
1 This is cut-and-pasted from an interactive example.py session. | 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, | 2 Calling `example.py -t` runs it as a series of unit tests, |
3 verifying that the same output is still returned. | 3 verifying that the same output is still returned. |
4 | 4 |
5 (Cmd) help | |
6 | |
7 Documented commands (type help <topic>): | |
8 ======================================== | |
9 _load edit history li load r save set shortcuts speak | |
10 ed hi l list orate run say shell show | |
11 | |
12 Undocumented commands: | |
13 ====================== | |
14 EOF cmdenvironment eof exit help q quit | |
15 | |
16 (Cmd) help say | |
17 Repeats what you tell me to. | |
18 Usage: speak [options] arg | |
19 | |
20 Options: | |
21 -h, --help show this help message and exit | |
22 -p, --piglatin atinLay | |
23 -s, --shout N00B EMULATION MODE | |
24 -r REPEAT, --repeat=REPEAT | |
25 output [n] times | |
26 | |
27 (Cmd) say goodnight, Gracie | |
28 goodnight, Gracie | |
29 (Cmd) say -ps --repeat=5 goodnight, Gracie | |
30 OODNIGHT, GRACIEGAY | |
31 OODNIGHT, GRACIEGAY | |
32 OODNIGHT, GRACIEGAY | |
33 (Cmd) set | |
34 prompt: (Cmd) | |
35 editor: gedit | |
36 echo: False | |
37 maxrepeats: 3 | |
38 (Cmd) set maxrepeats 5 | |
39 maxrepeats - was: 3 | |
40 now: 5 | |
41 (Cmd) say -ps --repeat=5 goodnight, Gracie | |
42 OODNIGHT, GRACIEGAY | |
43 OODNIGHT, GRACIEGAY | |
44 OODNIGHT, GRACIEGAY | |
45 OODNIGHT, GRACIEGAY | |
46 OODNIGHT, GRACIEGAY | |
47 (Cmd) hi | |
48 -------------------------[1] | |
49 help | |
50 -------------------------[2] | |
51 help say | |
52 -------------------------[3] | |
53 say goodnight, Gracie | |
54 -------------------------[4] | |
55 say -ps --repeat=5 goodnight, Gracie | |
56 -------------------------[5] | |
57 set | |
58 -------------------------[6] | |
59 set maxrepeats 5 | |
60 -------------------------[7] | |
61 say -ps --repeat=5 goodnight, Gracie | |
62 (Cmd) hi 3 | |
63 -------------------------[3] | |
64 say goodnight, Gracie | |
65 (Cmd) history notappearinginthisfilm | |
66 (Cmd) history goodnight | |
67 -------------------------[3] | |
68 say goodnight, Gracie | |
69 -------------------------[4] | |
70 say -ps --repeat=5 goodnight, Gracie | |
71 -------------------------[7] | |
72 say -ps --repeat=5 goodnight, Gracie | |
73 (Cmd) run 4 | |
74 say -ps --repeat=5 goodnight, Gracie | |
75 OODNIGHT, GRACIEGAY | |
76 OODNIGHT, GRACIEGAY | |
77 OODNIGHT, GRACIEGAY | |
78 OODNIGHT, GRACIEGAY | |
79 OODNIGHT, GRACIEGAY | |
80 (Cmd) orate four score and | 5 (Cmd) orate four score and |
81 > seven releases ago | 6 > seven releases ago |
82 > our BDFL | 7 > our BDFL |
83 > | 8 > |
84 > | 9 > |