summaryrefslogtreecommitdiff
path: root/tools/dbus-monitor.c
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@codefactory.se>2003-06-19 22:22:37 +0000
committerAnders Carlsson <andersca@codefactory.se>2003-06-19 22:22:37 +0000
commite94493fc116955bbf72a8896c48f2c119efacf7f (patch)
tree857c7b46c942110403bae778adc46dfc3ecb35fc /tools/dbus-monitor.c
parent9902499b56c72141ae51cb55b958cab6b3a0cba0 (diff)
downloaddbus-e94493fc116955bbf72a8896c48f2c119efacf7f.tar.gz
2003-06-19 Philip Blundell <philb@gnu.org>
* tools/dbus-print-message.c (print_message): Handle BOOLEAN. * tools/dbus-send.c: Accept both --system and --session. * tools/dbus-monitor.c: Same here.
Diffstat (limited to 'tools/dbus-monitor.c')
-rw-r--r--tools/dbus-monitor.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/dbus-monitor.c b/tools/dbus-monitor.c
index 0829506a..dac15292 100644
--- a/tools/dbus-monitor.c
+++ b/tools/dbus-monitor.c
@@ -46,7 +46,7 @@ handler_func (DBusMessageHandler *handler,
static void
usage (char *name, int ecode)
{
- fprintf (stderr, "Usage: %s [--system]\n", name);
+ fprintf (stderr, "Usage: %s [--system | --session]\n", name);
exit (ecode);
}
@@ -66,6 +66,8 @@ main (int argc, char *argv[])
if (!strcmp (arg, "--system"))
type = DBUS_BUS_SYSTEM;
+ else if (!strcmp (arg, "--session"))
+ type = DBUS_BUS_SESSION;
else if (!strcmp (arg, "--help"))
usage (argv[0], 0);
else if (!strcmp (arg, "--"))