From 72d7ead725f1a298f25e830618f6c7a086e0328a Mon Sep 17 00:00:00 2001 From: Chengwei Yang Date: Sun, 23 Jun 2013 10:49:09 +0800 Subject: [PATCH v2 2/4] dbus-launch: align document Signed-off-by: Chengwei Yang --- doc/dbus-launch.1.xml.in | 21 ++++++++++++++++++--- tools/dbus-launch.c | 5 ++++- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/doc/dbus-launch.1.xml.in b/doc/dbus-launch.1.xml.in index 727495b..31dd6ea 100644 --- a/doc/dbus-launch.1.xml.in +++ b/doc/dbus-launch.1.xml.in @@ -20,10 +20,14 @@ - dbus-launch --version + dbus-launch + --version + --help --sh-syntax --csh-syntax --auto-syntax + --binary-syntax + --close-stderr --exit-with-session --autolaunch=MACHINEID --config-file=FILENAME @@ -175,8 +179,12 @@ no real reason to use it outside of the libdbus implementation anyhow. Choose --csh-syntax or --sh-syntax based on the SHELL environment variable. - -Write to stdout a nul-terminated bus address, then the bus PID as a + + + + + +Write to stdout a nul-terminated bus address, then the bus PID as a binary integer of size sizeof(pid_t), then the bus X window ID as a binary integer of size sizeof(long). Integers are in the machine's byte order, not network byte order or any other canonical byte order. @@ -244,6 +252,13 @@ use it manually. It may change in the future. + + + +Print the help info of dbus-launch + + + diff --git a/tools/dbus-launch.c b/tools/dbus-launch.c index 86d325f..99143a6 100644 --- a/tools/dbus-launch.c +++ b/tools/dbus-launch.c @@ -182,7 +182,10 @@ verbose (const char *format, static void usage (int ecode) { - fprintf (stderr, "dbus-launch [--version] [--help] [--sh-syntax] [--csh-syntax] [--auto-syntax] [--exit-with-session]\n"); + fprintf (stderr, "dbus-launch [--version] [--help] [--sh-syntax]" + " [--csh-syntax] [--auto-syntax] [--binary-syntax] [--close-stderr]" + " [--exit-with-session] [--autolaunch=MACHINEID]" + " [--config-file=FILENAME] [PROGRAM] [ARGS...]\n"); exit (ecode); } -- 1.7.9.5