summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rwxr-xr-xREADME.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/README.md b/README.md
index 97b7e72b..0480f51b 100755
--- a/README.md
+++ b/README.md
@@ -242,12 +242,14 @@ class CmdLineApp(cmd2.Cmd):
self.multiline_commands = ['orate']
self.maxrepeats = 3
- # Add stuff to settable and shortcuts before calling base class initializer
- self.settable['maxrepeats'] = 'max repetitions for speak command'
+ # Add stuff to shortcuts before calling base class initializer
self.shortcuts.update({'&': 'speak'})
# Set use_ipython to True to enable the "ipy" command which embeds and interactive IPython shell
super().__init__(use_ipython=False)
+
+ # Make maxrepeats settable at runtime
+ self.settable['maxrepeats'] = 'max repetitions for speak command'
speak_parser = argparse.ArgumentParser()
speak_parser.add_argument('-p', '--piglatin', action='store_true', help='atinLay')