diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-02-04 22:18:56 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-02-04 22:18:56 -0500 |
commit | 14f456b0c3b70021fa650a596f81e0cfa7bd8949 (patch) | |
tree | 827e15626c891803c9fd3d667c1838f32bef8de4 /cmd2/cmd2.py | |
parent | 457123d3a1376a2ab713f0ff638313b0eacfcf3e (diff) | |
download | cmd2-git-14f456b0c3b70021fa650a596f81e0cfa7bd8949.tar.gz |
Fixed a bug in a very unusual case and added some unit tests
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index ccd96991..563e328d 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -2845,7 +2845,8 @@ class Cmd(cmd.Cmd): def do_set(self, args: argparse.Namespace) -> None: """Set a settable parameter or show current settings of parameters""" if not self.settables: - self.poutput("There are no settable parameters") + self.pwarning("There are no settable parameters") + return if args.param: try: |