getopt and dbus

Axel Liljencrantz liljencrantz at
Thu Dec 28 08:22:56 PST 2006


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?


More information about the dbus mailing list