Re: [dev] sbase

From: Anselm R Garbe <>
Date: Tue, 24 May 2011 08:00:02 +0200

On 24 May 2011 02:17, Connor Lane Smith <> wrote:
> On 23 May 2011 23:51, Kurt H Maier <> wrote:
>> Sorry, I assumed he was talking about --long-options.  I use -- pretty
>> regularly and will probably wind up patching it in if it's missing.
> In a moment of uncharacteristic pragmatism, I've decided for these
> tools it's probably best to use getopt. Not using it works well for
> dwm and dmenu, but .. yeah. So -- is now supported, as are grouped
> flags, etc.

Now my alarm bells ring. Why is getopt() a good idea? What's wrong
with making no assumptions and checking flags with strcmp like we did
in suckless tools? I understand why ARGBEGIN { } ARGEND is no option
for the -- case, but I really can't see why getopt() would be any
advantageous compared to our style?

Received on Tue May 24 2011 - 08:00:02 CEST

This archive was generated by hypermail 2.2.0 : Tue May 24 2011 - 08:12:03 CEST