diff options
author | Anders Carlsson <andersca@codefactory.se> | 2003-06-19 22:22:37 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@codefactory.se> | 2003-06-19 22:22:37 +0000 |
commit | e94493fc116955bbf72a8896c48f2c119efacf7f (patch) | |
tree | 857c7b46c942110403bae778adc46dfc3ecb35fc /tools/dbus-send.c | |
parent | 9902499b56c72141ae51cb55b958cab6b3a0cba0 (diff) | |
download | dbus-e94493fc116955bbf72a8896c48f2c119efacf7f.tar.gz dbus-e94493fc116955bbf72a8896c48f2c119efacf7f.tar.bz2 dbus-e94493fc116955bbf72a8896c48f2c119efacf7f.zip |
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-send.c')
-rw-r--r-- | tools/dbus-send.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/dbus-send.c b/tools/dbus-send.c index cada26a4..12ad5c8c 100644 --- a/tools/dbus-send.c +++ b/tools/dbus-send.c @@ -30,7 +30,7 @@ static void usage (char *name, int ecode) { - fprintf (stderr, "Usage: %s [--help] [--session] [--dest=SERVICE] [--print-reply] <message type> [contents ...]\n", name); + fprintf (stderr, "Usage: %s [--help] [--system | --session] [--dest=SERVICE] [--print-reply] <message type> [contents ...]\n", name); exit (ecode); } @@ -58,6 +58,8 @@ main (int argc, char *argv[]) if (strcmp (arg, "--system") == 0) type = DBUS_BUS_SYSTEM; + else if (strcmp (arg, "--session") == 0) + type = DBUS_BUS_SESSION; else if (strcmp (arg, "--print-reply") == 0) print_reply = TRUE; else if (strstr (arg, "--dest=") == arg) |