Kevin Van Brunt

Results 40 comments of Kevin Van Brunt

@crotwell Transcripts capture everything written to `self.stdout`, which is not limited to `self.output()` calls. Transcripts also already capture `self.stderr` via a `cmd2.utils.StdSim` and `unittest.TextTestRunner`. That data is printed to `sys.stderr`...

**cmd2** does not have a `self.stderr` member like it does `self.stdout` and `self.stdin` which are inherited from Python's **cmd** library. We capture `sys.stderr` during transcripts, command redirection/piping, and pyscripts. The...

On a related note, `cmd2` does provide a way for SIGINT protection during sections of code that need to fully run to avoid putting the app in an unstable state....

cmd2 does not support embedded comments by design. https://cmd2.readthedocs.io/en/latest/features/scripting.html#comments You can read the reasoning and discussion behind it here. https://github.com/python-cmd2/cmd2/pull/631

I have a fix for when using GNU Readline. I will look at pyreadline3 next and create a PR when I'm done.

I would prefer we wait and see if `pyreadline3` accepts your PR instead of patching their code in `cmd2`.

As a temporary workaround, does appending `cmd2.TextStyle.RESET_ALL` to your styled text fix the issue?

It looks like `pyreadline3` accepted your PR and it's now fixed as of `pyreadline3` version 3.4.2. I just tested using 3.4.3 in both Windows Command Prompt and Windows Powershell and...

@analog-cbarber Thanks for the fix. Sorry for the delay in applying it. The fix is in cmd2 2.5.6.

### Question 1 How to remove `{ro-community, ip-address}` from the following help output. ```Python (Cmd) help foo Usage: foo [-h] {ro-community, ip-address} ... Commands for configuration optional arguments: -h, --help...