[getopt-sig] ObjectCLI
Shane Hathaway
shane@zope.com
Thu, 14 Feb 2002 10:38:36 -0500
s.keim wrote:
>
> Le jeudi 14 février 2002, à 04:19 PM, Shane Hathaway a écrit :
>
>> Hi everyone,
>>
>> Here is an approach I'd like you to consider for parsing command-line
>> arguments. I used this approach in the "pma" project (an NNTP server
>> built on ZODB--see the zodbex project at SourceForge.)
>> ObjectCLI is a class that lets you invoke methods of a Python object
>> directly from the command line.
>
>
> Isn't it something that is already supported by the standard library ?
> http://python.org/doc/current/lib/module-cmd.html
No. cmd is for writing interactive command interpreters. ObjectCLI is
for writing non-interactive command-line parsers.
Shane