From: Tim Chase on 1 Aug 2010 09:28
On 08/01/10 08:12, python(a)bdurham.com wrote:
> Before I reinvent the wheel, is there a module that provides a
> command-line like parser that I can use? By command-line like
> parser, I mean that I would like to pass a string to this
> function and get back a list in the same manner as the OS
> receives a command line string which it parses into discrete
> items (handling quoted strings, backslashes, etc)
Sounds like the shlex module...
From: python on 1 Aug 2010 09:42
> Sounds like the shlex module...
Cheers for the link - that's *exactly* what I was searching for.
For the archives: Here's an excellent tutorial on this module.