summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2020-01-27 22:36:49 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2020-01-27 22:36:49 -0500
commit0f8f90cc2ade4135193f5399e5e6a12271668867 (patch)
treea3f8fd2c274fbac5293e218a70f55101f7b64633 /examples
parent95f8d883496044bcb95ce803752a8851de6ad0e5 (diff)
downloadcmd2-git-0f8f90cc2ade4135193f5399e5e6a12271668867.tar.gz
Made three public attributes of cmd2.Cmd no longer settable at runtime by end users
The 3 attributes are: - continuation_prompt - locals_in_py - prompt
Diffstat (limited to 'examples')
-rw-r--r--examples/scripts/save_help_text.py2
-rw-r--r--examples/transcripts/exampleSession.txt4
-rw-r--r--examples/transcripts/transcript_regex.txt4
3 files changed, 3 insertions, 7 deletions
diff --git a/examples/scripts/save_help_text.py b/examples/scripts/save_help_text.py
index 12d66d6d..2d1c2c41 100644
--- a/examples/scripts/save_help_text.py
+++ b/examples/scripts/save_help_text.py
@@ -60,7 +60,7 @@ def main() -> None:
# Make sure we have access to self
if 'self' not in globals():
- print("Run 'set locals_in_py true' and then rerun this script")
+ print("Re-run this script from a cmd2 application where locals_in_py is True")
return
# Make sure the user passed in an output file
diff --git a/examples/transcripts/exampleSession.txt b/examples/transcripts/exampleSession.txt
index 5a75235b..54419f91 100644
--- a/examples/transcripts/exampleSession.txt
+++ b/examples/transcripts/exampleSession.txt
@@ -4,13 +4,11 @@
# regexes on prompts just make the trailing space obvious
(Cmd) set
allow_style: /(Terminal|Always|Never)/
-continuation_prompt: >/ /
debug: False
echo: False
editor: /.*?/
feedback_to_output: False
-locals_in_py: False
+max_completion_items: 50
maxrepeats: 3
-prompt: (Cmd)/ /
quiet: False
timing: False
diff --git a/examples/transcripts/transcript_regex.txt b/examples/transcripts/transcript_regex.txt
index 276f7d22..35fc5817 100644
--- a/examples/transcripts/transcript_regex.txt
+++ b/examples/transcripts/transcript_regex.txt
@@ -4,13 +4,11 @@
# regexes on prompts just make the trailing space obvious
(Cmd) set
allow_style: /(Terminal|Always|Never)/
-continuation_prompt: >/ /
debug: False
echo: False
editor: /.*?/
feedback_to_output: False
-locals_in_py: False
+max_completion_items: 50
maxrepeats: 3
-prompt: (Cmd)/ /
quiet: False
timing: False