Module to read input from commandline

james at reggieband.com james at reggieband.com
Tue May 6 09:26:42 EDT 2008


On May 6, 2:11 pm, pyt... at bdurham.com wrote:

> Check out the optparse module as well. The optparse module supercedes(?)
> the cmd module and offers a lot more functionality.

Hi Malcom,

Doesn't the optparse module work by parsing the arguments that are
passed to the script when it is invoked?

What I was looking for was a commandline read loop that executes
within a script that is already running ... or can optparse be used in
this context as well?

Thanks,
James.



More information about the Python-list mailing list