getopt and dbus

Thiago Macieira thiago at kde.org
Thu Dec 28 09:20:45 PST 2006


Axel Liljencrantz wrote:
>Hi,
>
>I noticed that the dbus tools do their own options parsing instead of
>using e.g. getopt. This introduces minor incompatibilities with nearly
>every other commandline program, including:
>
>* No support for partial long-style switches, e.g. '--auto' should be
>identical to '--auto-syntax'.
>* No grouping of short switches, e.g '-cs' should be identical to '-c
> -s'.
>
>Also, the code for passing arguments with long-style switches is
>significantly more complex than it needs to be.
>
>Would patches for using getopt be accepted?

Yes, but you need to include the getopt_long function itself, under a 
suitable license (GPL + AFL1.1, or less restrictive).

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20061228/7e0e323e/attachment.pgp


More information about the dbus mailing list