]> code.delx.au - pulseaudio/commitdiff
--check: Updated manpage slightly and pulseaudio --help slightly.
authorSean McNamara <smcnam@gmail.com>
Wed, 7 Jan 2009 22:29:16 +0000 (23:29 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 7 Jan 2009 22:30:02 +0000 (23:30 +0100)
It's good for new users - I didn't know about the convention for
daemon checks to only bump the exit code until, say, a year after I
first installed Linux. Of course, we could also put an entire guide to
using Linux in our manpage, or tell users how to check the exit code
with $?, or how to get to the terminal, or an example script, ... (you
can see how this would quickly get out of control). So just a little
bit more hint should be good for now. John? Does this work for you?

Sean

Signed-off-by: Lennart Poettering <lennart@poettering.net>
man/pulseaudio.1.xml.in
src/daemon/cmdline.c

index df828242b29b6812e74cbb158f6779b83c13d423..8810e90c8484c299e2c72393dad7f4e5a771641d 100644 (file)
@@ -72,7 +72,7 @@ USA.
     </option>
 
     <option>
-      <p><opt>--dump-resampe-methods</opt></p>
+      <p><opt>--dump-resample-methods</opt></p>
       <optdesc><p>List available audio resamplers.</p></optdesc>
     </option>
 
@@ -110,7 +110,9 @@ USA.
       <p><opt>--check</opt></p>
 
       <optdesc><p>Return 0 as return code when the PulseAudio daemon
-      is already running for the calling user.</p></optdesc>
+      is already running for the calling user, or non-zero
+      otherwise. Produces no output on the console except for errors
+      to stderr.</p></optdesc>
     </option>
 
 
index 0bfc8a920a813e94b2c34f5df229f9bb59b3befd..cc3d714bf79ba953f8d8645d8d9ac828dafba815 100644 (file)
@@ -130,7 +130,7 @@ void pa_cmdline_help(const char *argv0) {
            "      --cleanup-shm                     Cleanup stale shared memory segments\n"
            "      --start                           Start the daemon if it is not running\n"
            "  -k  --kill                            Kill a running daemon\n"
-           "      --check                           Check for a running daemon\n\n"
+           "      --check                           Check for a running daemon (only returns exit code)\n\n"
 
            "OPTIONS:\n"
            "      --system[=BOOL]                   Run as system-wide instance\n"