getopt & single-letter options with parameters

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Aug 7 21:38:59 PDT 2010


On 08/07/2010 10:08 PM, SK wrote:
>> It's by design in order to avoid confusion with parameterless options.
>> Your example works with either of these invocations:
>>
>> ./prog -ofilename
>> ./prog -o=filename
>> ./prog --o=filename
>>
>> but not others.
>>
>>
>> Andrei
>>
>
> The prevailing convention is to allow whitespace in this case. Would you
> reconsider?

Sure. A patch would actually help a lot.

Andrei


More information about the Digitalmars-d mailing list