summaryrefslogtreecommitdiff
path: root/cmd2/utils.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-04-11 13:04:52 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2020-04-11 13:04:52 -0400
commit2bac6bcda3b7c5b2ba7093955acf232dd89f9f0f (patch)
tree7f5e029e5a079faf14453655292d6ca9f56a6dee /cmd2/utils.py
parent0d4be64b6ec76fcf5f87933293dbc7c134a32cf0 (diff)
downloadcmd2-git-2bac6bcda3b7c5b2ba7093955acf232dd89f9f0f.tar.gz
Made some optional arguments with defaults keyword-only.
Added unit test for echo argument to pyscript app() command. Removed _relative_load from hidden commands since that command was renamed.
Diffstat (limited to 'cmd2/utils.py')
-rw-r--r--cmd2/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/utils.py b/cmd2/utils.py
index 8b5e9cc8..03ede2a3 100644
--- a/cmd2/utils.py
+++ b/cmd2/utils.py
@@ -434,7 +434,7 @@ class StdSim:
Class to simulate behavior of sys.stdout or sys.stderr.
Stores contents in internal buffer and optionally echos to the inner stream it is simulating.
"""
- def __init__(self, inner_stream, echo: bool = False,
+ def __init__(self, inner_stream, *, echo: bool = False,
encoding: str = 'utf-8', errors: str = 'replace') -> None:
"""
StdSim Initializer