]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Add -X as a quick alternative to --displayConfig.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Thu, 13 Oct 2022 11:02:52 +0000 (12:02 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Thu, 13 Oct 2022 11:02:52 +0000 (12:02 +0100)
man/shairport-sync.7
man/shairport-sync.7.xml
shairport.c

index 8bbb915b2a37d64280125bc8dc339e43adc32a82..345e75ded3b792ed2c7642ae6291363802b1b3f9 100644 (file)
@@ -4,7 +4,7 @@ shairport-sync \- AirPlay and AirPlay 2 Audio Player
 .SH SYNOPSIS
 \fBshairport-sync [-djvw]\fB [-a \fB\fIservice-name\fB | --name=\fB\fIservice-name\fB]\fB [-B \fB\fIcommand\fB | --onstart=\fB\fIcommand\fB]\fB [-c \fB\fIconfigurationfile\fB | --configfile=\fB\fIconfigurationfile\fB]\fB [-d | --daemon]\fB [-E \fB\fIcommand\fB | --onstop=\fB\fIcommand\fB]\fB [-g | --get-cover-art]\fB [-j | --justDaemoniseNoPIDFile]\fB [--logOutputLevel]\fB [--log-to-syslog]\fB [-L \fB\fIlatency\fB | --latency=\fB\fIlatency\fB]\fB [-m \fB\fIbackend\fB | --mdns=\fB\fIbackend\fB]\fB [-M | --metadata-enable]\fB [-o \fB\fIbackend\fB | --output=\fB\fIbackend\fB]\fB [-p \fB\fIport\fB | --port=\fB\fIport\fB]\fB [--password=\fB\fIsecret\fB]\fB [-r \fB\fIthreshold\fB | --resync=\fB\fIthreshold\fB]\fB [--statistics]\fB [-S \fB\fImode\fB | --stuffing=\fB\fImode\fB]\fB [-t \fB\fItimeout\fB | --timeout=\fB\fItimeout\fB]\fB [--tolerance=\fB\fIframes\fB]\fB [-v | --verbose]\fB [-w | --wait-cmd]\fB [-- \fB\fIaudio_backend_options\fB]\fB
 
-shairport-sync --displayConfig\fB
+shairport-sync -X | --displayConfig\fB
 
 shairport-sync -h\fB
 
@@ -73,11 +73,6 @@ Read configuration settings from \fIfilename\f1. The default is to read them fro
 \fB-d | --daemon\f1
 Instruct shairport-sync to demonise itself. It will write its Process ID (PID) to a file, usually at \fI/var/run/shairport-sync/shairport-sync.pid\f1, which is used by the \fB-k\f1, \fB-D\f1 and \fB-R\f1 options to locate the daemon at a later time. See also the \fB-j\f1 option. Only available if shairport-sync has been compiled with libdaemon support. 
 .TP
-\fB--displayConfig\f1
-This logs information relating to the configuration of Shairport Sync. It can be very useful for debugging. The information logged is some host OS information, the Shairport Sync version string (which indicates the build options used when \fBshairport-sync\f1 was built), the contents of the command line that invoked Shairport Sync, the name of the configuration file and the active settings therein.
-
-If this is the only option on the command line, \fBshairport-sync\f1 will terminate after displaying the information.
-.TP
 \fB-E \f1\fIprogram\f1\fB | --on-stop=\f1\fIprogram\f1
 Execute \fIprogram\f1 when playback has ended. Specify the full path to the program, e.g. \fI/usr/bin/logger\f1. Executable scripts can be used, but they must have the appropriate shebang (\fI#!/bin/sh\f1) in the headline.
 
@@ -151,6 +146,11 @@ Print debug information to the \fISTDERR\f1, or to \fBsyslog\f1 if the \fB-log-t
 .TP
 \fB-w | --wait-cmd\f1
 Wait for commands specified using \fB-B\f1 or \fB-E\f1 to complete before continuing execution. 
+.TP
+\fB-X | --displayConfig\f1
+This logs information relating to the configuration of Shairport Sync. It can be very useful for debugging. The information logged is some host OS information, the Shairport Sync version string (which indicates the build options used when \fBshairport-sync\f1 was built), the contents of the command line that invoked Shairport Sync, the name of the configuration file and the active settings therein.
+
+If this is the only option on the command line, \fBshairport-sync\f1 will terminate after displaying the information.
 .SH AUDIO BACKEND OPTIONS
 Audio Backend Options are command-line options that are passed to the chosen audio backend. They are always preceded by the \fB--\f1 symbol to introduce them and to separate them from any preceding program options. In this way, option letters can be used as program options and reused as audio backend options without ambiguity.
 
index c9a197dec5f38ae1186ca62591aa7d3b12e8cbcb..43dd4b15e34ef1e3dd7202b26cec2f9262567179 100644 (file)
@@ -60,7 +60,7 @@
       <opt>[-w | --wait-cmd]</opt>
       <opt>[-- </opt><arg>audio_backend_options</arg><opt>]</opt>
       </cmd>
-      <cmd>shairport-sync <opt>--displayConfig</opt></cmd>
+      <cmd>shairport-sync <opt>-X | --displayConfig</opt></cmd>
       <cmd>shairport-sync <opt>-h</opt></cmd>
       <cmd>shairport-sync <opt>-k</opt></cmd>
       <cmd>shairport-sync <opt>-V</opt></cmd>
                </p></optdesc>
          </option>
 
-         <option>
-               <p><opt>--displayConfig</opt></p>
-               <optdesc><p>
-               This logs information relating to the configuration of Shairport Sync.
-               It can be very useful for debugging. The information logged is 
-               some host OS information, the Shairport Sync version string
-               (which indicates the build options used when <opt>shairport-sync</opt> was built),
-               the contents of the command line that invoked Shairport Sync,
-               the name of the configuration file and the active settings therein.</p>
-               <p>If this is the only option on the command line, <opt>shairport-sync</opt> will
-               terminate after displaying the information.</p>
-               </optdesc>
-         </option>
-
          <option>
                <p><opt>-E </opt><arg>program</arg><opt> | --on-stop=</opt><arg>program</arg></p>
                <optdesc><p>
                </p></optdesc>
          </option>
 
+         <option>
+               <p><opt>-X | --displayConfig</opt></p>
+               <optdesc><p>
+               This logs information relating to the configuration of Shairport Sync.
+               It can be very useful for debugging. The information logged is 
+               some host OS information, the Shairport Sync version string
+               (which indicates the build options used when <opt>shairport-sync</opt> was built),
+               the contents of the command line that invoked Shairport Sync,
+               the name of the configuration file and the active settings therein.</p>
+               <p>If this is the only option on the command line, <opt>shairport-sync</opt> will
+               terminate after displaying the information.</p>
+               </optdesc>
+         </option>
+
   <section name="Audio Backend Options">
   <p>Audio Backend Options are command-line options that are passed to the chosen audio backend.
   They are always preceded by the <opt>--</opt> symbol to introduce them and to separate them from
index 1c586479ed67746ab4aa9c0c5e6733751d5cda7f..11ffcf6ebe833a1d7df1a986829d4117d92d6ddf 100644 (file)
@@ -281,7 +281,7 @@ void usage(char *progname) {
     printf("Options:\n");
     printf("    -h, --help              Show this help.\n");
     printf("    -V, --version           Show version information -- the version string.\n");
-    printf("    --displayConfig         Output OS information, version string, command line, configuration file and active settings to the log.\n");
+    printf("    -X, --displayConfig     Output OS information, version string, command line, configuration file and active settings to the log.\n");
     printf("    --statistics            Print some interesting statistics. More will be printed if -v / -vv / -vvv are also chosen.\n");
     printf("    -v, --verbose           Print debug information; -v some; -vv more; -vvv lots -- generally too much.\n");
     printf("    -c, --configfile=FILE   Read configuration settings from FILE. Default is %s.\n", configuration_file_path);
@@ -352,7 +352,7 @@ int parse_options(int argc, char **argv) {
       {"statistics", 0, POPT_ARG_NONE, &config.statistics_requested, 0, NULL, NULL},
       {"logOutputLevel", 0, POPT_ARG_NONE, &config.logOutputLevel, 0, NULL, NULL},
       {"version", 'V', POPT_ARG_NONE, NULL, 0, NULL, NULL},
-      {"displayConfig", 0, POPT_ARG_NONE, &display_config_selected, 0, NULL, NULL},
+      {"displayConfig", 'X', POPT_ARG_NONE, &display_config_selected, 0, NULL, NULL},
       {"port", 'p', POPT_ARG_INT, &config.port, 0, NULL, NULL},
       {"name", 'a', POPT_ARG_STRING, &raw_service_name, 0, NULL, NULL},
       {"output", 'o', POPT_ARG_STRING, &config.output_name, 0, NULL, NULL},