diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-04-11 13:04:52 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-04-11 13:04:52 -0400 |
commit | 2bac6bcda3b7c5b2ba7093955acf232dd89f9f0f (patch) | |
tree | 7f5e029e5a079faf14453655292d6ca9f56a6dee /cmd2/utils.py | |
parent | 0d4be64b6ec76fcf5f87933293dbc7c134a32cf0 (diff) | |
download | cmd2-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.py | 2 |
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 |