[issue33227] Cmd do_something only accepts one argument

2018-04-06 Thread Ned Deily
Ned Deily added the comment: Oz, I don't particularly like the idea of deprecating cmd but, realistically, Python development is almost entirely an unpaid, volunteer activity and we do not have enough resources to do everything we'd like to do. So sometimes we need to make

[issue33227] Cmd do_something only accepts one argument

2018-04-06 Thread Oz Tiram
Oz Tiram added the comment: I am disappointed you want to deprecate CMD. I knew about cmd2 and some other alternatives, but I think their execive use of decorators isn't so comfortable. That is why I wrote my own module. I'm also willing to adopt the module and add even

[issue33227] Cmd do_something only accepts one argument

2018-04-06 Thread Ned Deily
Ned Deily added the comment: The more I think about it, the more I feel it would be a disservice to our users to add piecemeal enhancements like this to the standard library cmd module at this point, when cmd is essentially unmaintained and there is already a superior

[issue33227] Cmd do_something only accepts one argument

2018-04-06 Thread Éric Araujo
Éric Araujo added the comment: I think using shlex unconditionally to parse lines sent to cmd.Cmd may not be ideal. Cmd is very generic and there are many ways to parse lines into arguments: - no parsing (think Python shells or remote command execution) - shlex (makes sense

[issue33227] Cmd do_something only accepts one argument

2018-04-05 Thread Ned Deily
Ned Deily added the comment: Thanks for your suggested enhancement to the cmd module. cmd has been around a *long* time and, unfortunately, has received very little maintenance or enhancement attention for many years. In the meantime, third-party replacements for cmd have

[issue33227] Cmd do_something only accepts one argument

2018-04-05 Thread Oz Tiram
Change by Oz Tiram : -- components: +Library (Lib) type: -> enhancement ___ Python tracker ___

[issue33227] Cmd do_something only accepts one argument

2018-04-05 Thread Oz Tiram
New submission from Oz Tiram : Considering that I want to build an CLI interactive program using cmd.Cmd, which has multiple functions that accept two or more arguments, I always have to do parsing of arg inside my do_methods for example: class Calc(cmd.Cmd):