dbus-send: check usage a bit strictly
authorChengwei Yang <chengwei.yang@intel.com>
Thu, 6 Jun 2013 08:58:11 +0000 (16:58 +0800)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 6 Jun 2013 12:07:51 +0000 (13:07 +0100)
commitc690ee4351f99ed5e629ffcf5f4a2edcd418d103
tree5ed0c8316e5c747e5f800643dbb9155e237ec2af
parentc9b942e56f5b0a166cfc7ab4f53c54449a9db8de
dbus-send: check usage a bit strictly

This commit does several more strictly check for dbus-send as its usage
suggested.

* now --address is an invalid option but --address=, this just like the
  others, say --reply-timeout=, --dest=, --type=
* --print-reply= only take an optional argument "=literal"
* --print-reply= will cause error with missing MSEC and invalid MSEC
  will cause invalid value error
* --dest= will cause error with missing a NAME and also call
  dbus_validate_bus_name to verify the NAME

Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=65424
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
tools/dbus-send.c