summaryrefslogtreecommitdiff
path: root/example/exampleSession.txt
diff options
context:
space:
mode:
authorTL <tleonhardt@sigovs.com>2017-01-11 12:22:19 -0500
committerTL <tleonhardt@sigovs.com>2017-01-11 12:22:19 -0500
commit30e55d72351b367a1c303cc1d52c2bfaf950ccec (patch)
tree473cb399123072009491e2826ed6d5137b1b5e98 /example/exampleSession.txt
parent1d3bd562aa69dc50249974fd96dfd39d6dd28c7c (diff)
downloadcmd2-git-30e55d72351b367a1c303cc1d52c2bfaf950ccec.tar.gz
Fixed example.py and exampleSession.txt so that the example runs and the test passes when running "python example.py -t exampleSession.txt".
Also made the front-page documentation consistent so it references the actual code and text in this modified example.
Diffstat (limited to 'example/exampleSession.txt')
-rw-r--r--example/exampleSession.txt15
1 files changed, 7 insertions, 8 deletions
diff --git a/example/exampleSession.txt b/example/exampleSession.txt
index 795f4a65..d1dcb544 100644
--- a/example/exampleSession.txt
+++ b/example/exampleSession.txt
@@ -12,7 +12,7 @@ EOF eof exit help q quit
(Cmd) help say
Repeats what you tell me to.
-Usage: speak [options] (text to say)
+Usage: speak [options] arg
Options:
-h, --help show this help message and exit
@@ -31,14 +31,14 @@ OODNIGHT, GRACIEGAY
abbrev: True
case_insensitive: True
colors: True
-continuation_prompt: >
+continuation_prompt: >
debug: False
default_file_name: command.txt
echo: False
-editor: /\w*/
+editor: gedit
feedback_to_output: False
maxrepeats: 3
-prompt: (Cmd)
+prompt: (Cmd)
quiet: False
timing: False
(Cmd) set maxrepeats 5
@@ -67,6 +67,7 @@ set maxrepeats 5
say -ps --repeat=5 goodnight, Gracie
(Cmd) run 4
say -ps --repeat=5 goodnight, Gracie
+
OODNIGHT, GRACIEGAY
OODNIGHT, GRACIEGAY
OODNIGHT, GRACIEGAY
@@ -75,15 +76,13 @@ OODNIGHT, GRACIEGAY
(Cmd) orate Four score and
> seven releases ago
> our BDFL
->
+> blah blah blah
Four score and
seven releases ago
our BDFL
+blah blah blah
(Cmd) & look, a shortcut!
look, a shortcut!
-(Cmd) say put this in a file > myfile.txt
-(Cmd) say < myfile.txt
-put this in a file
(Cmd) set prompt "---> "
prompt - was: (Cmd)
now: --->