File: from_cmdloop.txt

package info (click to toggle)
cmd2 2.5.11%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,244 kB
  • sloc: python: 19,643; makefile: 73; sh: 67; javascript: 30
file content (44 lines) | stat: -rw-r--r-- 1,092 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# responses with trailing spaces have been matched with a regex
# so you can see where they are.

(Cmd) help say
Usage: speak [-h] [-p] [-s] [-r REPEAT]/ */

Repeats what you tell me to./ */

optional arguments:/ */
  -h, --help           show this help message and exit/ */
  -p, --piglatin       atinLay/ */
  -s, --shout          N00B EMULATION MODE/ */
  -r, --repeat REPEAT  output [n] times/ */

(Cmd) say goodnight, Gracie
goodnight, Gracie
(Cmd) say -ps --repeat=5 goodnight, Gracie
OODNIGHT, GRACIEGAY
OODNIGHT, GRACIEGAY
OODNIGHT, GRACIEGAY
(Cmd) set maxrepeats 5
maxrepeats - was: 3
now: 5
(Cmd) say -ps --repeat=5 goodnight, Gracie
OODNIGHT, GRACIEGAY
OODNIGHT, GRACIEGAY
OODNIGHT, GRACIEGAY
OODNIGHT, GRACIEGAY
OODNIGHT, GRACIEGAY
(Cmd) history
    1  help say
    2  say goodnight, Gracie
    3  say -ps --repeat=5 goodnight, Gracie
    4  set maxrepeats 5
    5  say -ps --repeat=5 goodnight, Gracie
(Cmd) history -r 3
OODNIGHT, GRACIEGAY
OODNIGHT, GRACIEGAY
OODNIGHT, GRACIEGAY
OODNIGHT, GRACIEGAY
OODNIGHT, GRACIEGAY
(Cmd) set debug True
debug - was: False/ */
now: True/ */