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/cmd2.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/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index a8661e3c..de7e7f5a 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -213,7 +213,7 @@ class Cmd(cmd.Cmd): self.self_in_py = False # Commands to exclude from the help menu and tab completion - self.hidden_commands = ['eof', '_relative_load', '_relative_run_script'] + self.hidden_commands = ['eof', '_relative_run_script'] # Initialize history self._persistent_history_length = persistent_history_length @@ -258,7 +258,7 @@ class Cmd(cmd.Cmd): self.sigint_protection = utils.ContextFlag() # If the current command created a process to pipe to, then this will be a ProcReader object. - # Otherwise it will be None. Its used to know when a pipe process can be killed and/or waited upon. + # Otherwise it will be None. It's used to know when a pipe process can be killed and/or waited upon. self._cur_pipe_proc_reader = None # Used to keep track of whether we are redirecting or piping output @@ -3904,7 +3904,7 @@ class Cmd(cmd.Cmd): alert_msg += '\n' update_terminal = True - # Set the prompt if its changed + # Set the prompt if it's changed if new_prompt is not None and new_prompt != self.prompt: self.prompt = new_prompt |