On Sun, 08 Jul 2007 09:59:29 +, vvikram wrote:
>
> I want to call some function from my program and just pass it a
> commandline. It should parse the commandline and return back a list of
> parsed arguments (just like the sys.argv list)
>
> Example:
> foo.parse_cmdline("/usr/bin/foorun -v -d
I want to call some function from my program and just pass it a
commandline. It should parse the commandline and return back a list of
parsed arguments (just like the sys.argv list)
Example:
foo.parse_cmdline("/usr/bin/foorun -v -d -h")
==> ['/usr/bin/foorun', '-v', '-d','-h']
Any suggestions on