getopt and dbus

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

Axel Liljencrantz wrote:
>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) - thiago (AT)
    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 :

More information about the dbus mailing list