Yet another optparse
Kirk McDonald
kirklin.mcdonald at gmail.com
Wed Jan 10 04:28:29 PST 2007
Rueschi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Kirk McDonald schrieb:
>> CyaNox wrote:
>>> Does your implementation account for the following:
>>>
>>> app --file="foo bar"
>>> app --file "some --file with spaces and quoted"
>>>
>> Quoting is taken care of by the shell before the argument even gets to
>> your program.
>
> This is not true on Windows systems, where the whole command line is
> passed in only one string. The parsing is left to the program.
Not so. The examples I used in my previous post all worked equally well
for me on Windows XP and Linux, and I have been testing optparse on both.
--
Kirk McDonald
Pyd: Wrapping Python with D
http://pyd.dsource.org
More information about the Digitalmars-d
mailing list