-
The man page and --help imply that dbus-daemon --print-address --print-pid is a valid/useful thing to do, but because --print-address takes an optional argument, it is ambiguous whether --print-pid is meant to be the argument for --print-address (same as --print-address=--print-pid) or a new option (same as --print-address=1 --print-pid). In fact, before this commit, the dbus-daemon would interpret --print-pid as the optional argument to --print-address, and then fail to parse it because it isn't an integer. Because none of our options are syntactically valid as arguments for any option that takes an optional argument, we can avoid the ambiguity by delaying parsing of optional arguments until all known options have been tried. Resolves: #467 Signed-off-by: Xin Shi <shixin21@huawei.com>
86a89967