diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-02-04 22:34:29 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-02-04 22:34:29 -0500 |
commit | 61dfcf613966355d68c01f2aa06f0158b54c1f20 (patch) | |
tree | bf459015f6fb0f06c0ebdb7cadee30ba57f05735 /README.md | |
parent | 14f456b0c3b70021fa650a596f81e0cfa7bd8949 (diff) | |
download | cmd2-git-61dfcf613966355d68c01f2aa06f0158b54c1f20.tar.gz |
Fixed doc build and updated README
Diffstat (limited to 'README.md')
-rwxr-xr-x | README.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -229,6 +229,7 @@ import argparse import random import sys import cmd2 +from cmd2.utils import Settable class CmdLineApp(cmd2.Cmd): """ Example cmd2 application. """ @@ -248,7 +249,7 @@ class CmdLineApp(cmd2.Cmd): super().__init__(use_ipython=False, multiline_commands=['orate'], shortcuts=shortcuts) # Make maxrepeats settable at runtime - self.settable['maxrepeats'] = 'max repetitions for speak command' + self.add_settable(Settable('maxrepeats', int, 'max repetitions for speak command')) speak_parser = argparse.ArgumentParser() speak_parser.add_argument('-p', '--piglatin', action='store_true', help='atinLay') |