cmd2
cmd2 copied to clipboard
cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python
# Issue When a positional comes before a subcommand, the help output for the subcommand will be missing the positional in the usage. This does not match up with argparse...
There is a difference in return value when comparing `cmd2` and `cmd` because of the following line: https://github.com/python-cmd2/cmd2/blob/be1593929f046d44e0d27fcd902fdb9998ba6bb3/cmd2/cmd2.py#L3037 In `cmd2` if the return of a `do_` command is `None` then...
**summary** when a `do_` command is decorated with `@cmd2.with_argparser` it does not correctly remove trailing comments. For example: ```python @cmd2.with_argparser( system_argument_parser ) def do_system( self, args: argparse.Namespace ): do_system( args,...
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3. Release notes Sourced from github/codeql-action's releases. CodeQL Bundle v2.15.4 Bundles CodeQL CLI v2.15.4 (changelog, release) Includes the following CodeQL language packs from github/codeql@codeql-cli/v2.15.4: codeql/cpp-queries...
Currently the argument parser factory function must be either a stand-alone function, a class method, or static method. Need to support an instance method to support scenario discussed in #1280
Mostly to track the issue. Issue filed with mypy repo: https://github.com/python/mypy/issues/16374
If the user is in the middle of an incremental search (CTRL+R) at the prompt and an asynchronous prompt update occurs from a background thread the search output is overwritten.
When you use a multiline command, the readline history stores each line of the multiline command as an individual entry. The entire multiline command should instead be accessible as a...
For example, I have the following code: ```python def do_job1(self, text): # do job1 def do_job2(self, text): # do job2 def default(self, text): # not a command, it's some text...
For example: ```bash >>> Please input your name ``` The >>> is the prompt. `Please input your name` is the placeholder. The cursor is in front of `Please`. When you...